AIcrowd / real_robots

Gym environments for Robots that learn to interact with the environment autonomously
https://www.aicrowd.com/challenges/neurips-2019-robot-open-ended-autonomous-learning
MIT License
34 stars 18 forks source link

Tests !! #14

Open spMohanty opened 5 years ago

spMohanty commented 5 years ago

We dont have a single test at the moment ! While the tests framework is setup and configured, we would need a bit of a hand in writing the tests !!

emilio-cartoni commented 5 years ago

How do we launch tests? Running pytest on the main folder?

emilio-cartoni commented 5 years ago

Ok, I have installed flake8 and I will now run flake8 and pytest from the main directory before commits.

emilio-cartoni commented 5 years ago

The build keeps failing online. I have managed to get a successfull build locally using the FixBuild branch (7c198bf) but online it does not work. I think it has something to do with the fact that we open a GUI while testing, and the backend might not have a display, so it fails. Browsing around I have found that if this is the case, it might be solved by using xvfb and pytest-xvfb https://pypi.org/project/pytest-xvfb/