real_robots
real_robots copied to clipboard
Tests !!
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 !!
How do we launch tests?
Running pytest
on the main folder?
Ok, I have installed flake8 and I will now run flake8 and pytest from the main directory before commits.
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/