Using the specific test 1 from /new/config.yaml in the https://github.com/CyrusEmber/test3 repository create a pytest function test_iqtree2_baseline.py that verifies that;
that a temporary subdirectory of the tests directory can be created (using a pytest temp_path_factory fixture)
that that path can be navigated to
that the binary is in /build
that a subdirectory data can be created in the temporary directory
that ../data/example.phy and ../data/example.nex are available and can be copied to the temporary data directory
that ../../build/iqtree2 -s data/example.phy -redo -sp data/example.nex executed in the temporary file returns without error
that the output includes;
"Total wall-clock time used:" and the value is >10.1
"Number of categories:" and the value is >= 3
This models running the binary in a temporary path, copying the sample data afresh, running a parameterized test, with at least 2 parameters to test
Using the specific test 1 from /new/config.yaml in the https://github.com/CyrusEmber/test3 repository create a pytest function test_iqtree2_baseline.py that verifies that;
../../build/iqtree2 -s data/example.phy -redo -sp data/example.nex
executed in the temporary file returns without errorThis models running the binary in a temporary path, copying the sample data afresh, running a parameterized test, with at least 2 parameters to test