Differences between revisions 2 and 3
Revision 2 as of 2019-10-06 14:01:17
Size: 860
Editor: JendrikSeipp
Comment:
Revision 3 as of 2019-10-10 22:05:40
Size: 1169
Editor: JendrikSeipp
Comment:
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
To run all tests under all locally-available Python versions, run ```tox``` in the ```misc/``` directory. The command creates Python virtual environments under ```misc/.tox```. The directory uses ~50 MB and is not shown by ```hg status```. You can safely delete the directory after the tests have been run. To run all tests under all locally-available Python versions, run ```tox``` in the ```misc/``` directory. The command creates Python virtual environments under ```misc/.tox```. The directory uses ~50 MB and is not shown by ```hg status```. You can safely delete the directory after the tests have been run. To run a subset of tests, e.g., only the style checks, use ```tox -e style``` (see ```misc/tox.ini``` for other test environments). Many of the tests that tox executes are Bash/Python scripts or pytest modules, which you can also run individually. To check a pytest module, execute ```pytest my_module.py```.

Back to developer page.

Recommended development environment

The requirements for building and running the planner are listed under ObtainingAndRunningFastDownward. Our automated tests have additional dependencies which can be seen at http://hg.fast-downward.org/file/default/bitbucket-pipelines.yml. We recommend using Ubuntu 16.04 or 18.04 for Fast Downward development since these versions are also used by the core developers and they allow installing many dependencies via the package manager.

Running tests

To run all tests under all locally-available Python versions, run tox in the misc/ directory. The command creates Python virtual environments under misc/.tox. The directory uses ~50 MB and is not shown by hg status. You can safely delete the directory after the tests have been run. To run a subset of tests, e.g., only the style checks, use tox -e style (see misc/tox.ini for other test environments). Many of the tests that tox executes are Bash/Python scripts or pytest modules, which you can also run individually. To check a pytest module, execute pytest my_module.py.

FastDownward: ForDevelopers/DevelopmentSetup (last edited 2024-01-11 20:57:33 by JendrikSeipp)