Commit Graph

7 Commits

Author SHA1 Message Date
Dan Smith
fffaa7e765 Make test adapter granular
This makes the unit test adapter granular so you can run individual
tests and drivers for quicker automated testing.
2021-12-06 09:31:15 -08:00
Dan Smith
ba8ecbc90f Add future to tox config
Related to #743
2019-07-11 19:32:29 -07:00
Dan Smith
ed7bc5adc4 Add mock to the unit test environment
Fixes the tests for #5995
2018-08-08 07:30:15 -07:00
Dan Smith
98e47b6e70 Fix tox unit test requirement for mox library
#0
2018-03-15 17:12:30 -07:00
Dan Smith
5cca12ee7e Make tests module generate a unittest-compatible interface
This lets us use the integrated unittest runner, which does things
like report failures at the end, stdio buffering, etc. You can still
use the old tests/run_tests if desired (for now), but this makes it
much nicer for the build system.

Loosely related to #5237
2017-10-12 11:35:47 -07:00
Dan Smith
01126ccd11 Make run_tests a proper python module
Also provide a run_tests shell wrapper for compatibility.

Related to #5237
2017-10-12 11:27:16 -07:00
Dan Smith
0c6ebbceb2 Add tox.ini for running tests
Tox handles venv creation and management of setup install for
running tests. Since we have a venv required already, this just
makes sense.

Now, instead of:

 ./run_all_tests.sh

You can just run:

  tox

Assuming you have tox installed (pip install tox). You can run individual
test groups like this:

 tox -e unit
 tox -e driver

and still pass arguments to the driver tests per usual with:

 tox -e driver -- -d Icom_IC-2200H

I'll be working to make the build system use tox for running tests with
better isolation and hopefully more repeatability.

#5237
2017-10-11 20:37:37 -07:00