There are currently no tests for the GAIL runners and agents, as well as for the tf2rl classes.
Please have a look at the linked files and write tests:
The test suite should not depend on some pre-generation step of expert trajectories.
We need some expert trajectories that are included in the gail_data folder which can be accessed during test time to have some deterministic test behavior:
[ ] gym training tests
[ ] bark training tests
For the examples/gail.py script it is perfectly fine to have the whole loop of generating the expert trajectories and then reading them into the trainer, but for the tests we need fixed expert trajectories.
Starting point
We have made many tests for the generate script.
To get an overview in how to test in python, please have a look at:
Tests
There are currently no tests for the GAIL runners and agents, as well as for the tf2rl classes. Please have a look at the linked files and write tests:
Also there are no tests for:
As I have split up the CI tests, you can run your tests with: bazel run :gail_tests
Test data
I included some test data: https://github.com/GAIL-4-BARK/bark-ml/tree/master/bark_ml/tests/py_library_tf2rl_tests/gail_data/expert_data/open-ai
The test suite should not depend on some pre-generation step of expert trajectories. We need some expert trajectories that are included in the gail_data folder which can be accessed during test time to have some deterministic test behavior:
For the examples/gail.py script it is perfectly fine to have the whole loop of generating the expert trajectories and then reading them into the trainer, but for the tests we need fixed expert trajectories.
Starting point
We have made many tests for the generate script. To get an overview in how to test in python, please have a look at: