This moves the testing suite to be callable with, e.g.,
from pysr.test import runtests
runtests()
this makes it easier to ensure that the correct PySR is actually being tested, whereas with python -m unittest test.test, it is not clear if it is testing a local copy or the installed version.
This also adds a testing CLI, so that you can run, e.g.,
python -m pysr.test <test>
where <test> is one of "main", "env", "torch", or "jax".
[x] Get conda install to run tests from installed version, not the local copy.
This moves the testing suite to be callable with, e.g.,
this makes it easier to ensure that the correct PySR is actually being tested, whereas with
python -m unittest test.test
, it is not clear if it is testing a local copy or the installed version.This also adds a testing CLI, so that you can run, e.g.,
where
<test>
is one of "main", "env", "torch", or "jax".