Hi Tom, I mostly use the normal assert or one of its unittest twins https://docs.python.org/2/library/unittest.html#assert-methods to compare calculated results against expected results. I didn't find any of these in your file, so I am not sure, what exactly should trigger a test failure there.
Matthias On 09/08/2015 02:09 PM, Tom Chadwin wrote: > I've implemented very basic Travis testing for the plugin qgis2web, and it's > been working very well, catching code errors which result in Python errors. > However, I'm now trying to expand the suite of tests to test the plugin > against different data. The problem I have is that I now cannot get Travis > to fail a build. I have tried adding deliberate errors which cause Python > errors when running the plugin, but Travis still passes. > > The file with the tests is: > > https://github.com/tomchadwin/qgis2web/blob/master/test/test_qgis2web_dialog.py > > Can anyone help? > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Deliberate-errors-but-Travis-passes-tp5223114.html > Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. > _______________________________________________ > Qgis-developer mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-developer
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
