Since version 0.91, our backend test suite is much smaller and simpler; since most of the core functionality is now handled by GES, you need to run GES's test suite instead if you want to test more thoroughly.
You can then run the unit tests with:
cd tests make check
If you want to run only one particular unit test you can use for example:
nosetests tests/test_project.py:TestProjectManager.testLoadProjectFailedUnknownFormat -v
Writing unit tests
UI tests with Dogtail
- Install dogtail (on Fedora: "yum install dogtail", on Ubuntu: install it manually)
- As a normal user, run "sniff" to make sure the assistive technologies are enabled (dogtail uses AT-SPI to do its magic)
- Logout and re-login
Running the UI tests
Assuming you've got Pitivi git with the environment variables set properly (see Building with GES), you can go to the pitivi directory and run all our UI tests by doing:
python2 -m unittest discover tests/dogtail_scripts/ -v
During test execution, do not touch your computer. Go grab a cup of tea or a hot dog and watch the show. It will take a couple of minutes, depending on how fast your computer is.