Closed ddugovic closed 1 year ago
quick_test runs tester.py with different arguments. All but the last two tests should complete with 100% correct results. It uses the tqdm library to show progress. But I guess we need the correctness to be computationally checkable, so quick_test needs to be converted to pytest or something?
Using pytest isn't required; it's possible to run tests via any command, although it might be easier to understand results if tests are formatted like https://docs.pytest.org/en/7.2.x/ so pytest may easily discover them.
On my PC, quick_tests doesn't work?
➜ sunfish git:(master) bash ./tools/quick_tests.sh
./tools
Perft
./tools/quick_tests.sh: line 10: $1: unbound variable
You need to add the path to sunfish. Like this "tools/quick_test.sh ./sunfish.py"
I'm not entirely sure how to run tools/quick_tests.sh , but this should fix some GitHub Actions CI errors.