Run Tests
Step 1: Run All Integration Tests
Now, putting it all together, run all of the tests we’ve defined in the L7|ESP SDK using the test
make target:
~$ make test
This command will clear existing related content from the database, and run both the test_status.py
and test_qc_workflow.py
tests.
Step 2: Clear the Database
By default, artifacts created during tests are not removed after a test run so that developers can visit the application UI and see any resulting content. When tests are re-run, the test suite will automatically tear down content from a previous run and then proceed with executing tests. Usually, you won’t need to clear the database between running tests, but if you want to run everything from a clean slate, you can use the commands below to clear the database outside of a test run. There are two ways to do this, both outlined in the Administration section of the documentation:
~$ # keep the application running and use
~$ # the python client to run tests
~$ make clear
~$ # completely wipe the database and reload
~$ # the application
~$ make reset