[Qgis-developer] Deliberate errors, but Travis passes

Matthias Kuhn matthias at opengis.ch
Tue Sep 8 06:07:20 PDT 2015


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
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150908/b0ec78b9/attachment-0001.pgp>


More information about the Qgis-developer mailing list