cogent3 / iqtree2

NEW location of IQ-TREE software for efficient phylogenomic software by maximum likelihood http://www.iqtree.org
GNU General Public License v2.0
1 stars 0 forks source link

Test confirguration #18

Closed khiron closed 1 year ago

khiron commented 1 year ago

Create a pytest.ini in /tests to maintain test configuration.

Example from cogent3;

markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"] adopts = ["--strict-config","-ra"] testpaths= "tests" # may be unnecessary if tests are run in that path

decorating slow tests in Python

 @pytest.mark.slow
 def test_something_slow():
     pass

usage:

pytest not slow

vs

pytest slow