Skip to content

Latest commit

 

History

History
83 lines (54 loc) · 2.41 KB

TEST.md

File metadata and controls

83 lines (54 loc) · 2.41 KB

Test Instructions

Unit testing ☑️

Run all tests:

mvn clean test

Run individual tests:

mvn clean test -D test=WordDaoTest

Code coverage 📊

codecov

mvn test
open target/site/jacoco/index.html

Regression testing

REST API

First, launch the webapp on localhost:

mvn jetty:run

Then, in another terminal window run all the regression tests against the REST API:

mvn verify -P regression-test-rest

Tip

If you want to run the tests against another URL, set the base.url system property:

mvn verify -P regression-test-rest -D base.url=https://eng.elimu.ai

UI

First, launch the webapp on localhost:

mvn jetty:run

Then, in another terminal window run all the regression tests against the UI:

mvn verify -P regression-test-ui

Tip

If you want to run the tests against another URL, set the base.url system property:

mvn verify -P regression-test-ui -D base.url=https://eng.elimu.ai
Headless 😶‍🌫️

If you don't want the automated test software to open browser windows, you can disable that by setting the headless system property:

mvn verify -P regression-test-ui -D headless=true


elimu.ai - Free open-source learning software for out-of-school children 🚀✨

Website 🌐  •  Wiki 📃  •  Projects 👩🏽‍💻  •  Milestones 🎯  •  Community 👋🏽  •  Support 💜