real_robots icon indicating copy to clipboard operation
real_robots copied to clipboard

Tests !!

Open spMohanty opened this issue 5 years ago • 3 comments

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 !!

spMohanty avatar Aug 06 '19 23:08 spMohanty

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

emilio-cartoni avatar Aug 07 '19 08:08 emilio-cartoni

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

emilio-cartoni avatar Aug 07 '19 11:08 emilio-cartoni

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/

emilio-cartoni avatar Aug 19 '19 11:08 emilio-cartoni