isaac@ib:~/.qgis2/python/plugins/MakeOSMRoutableNetwork$ make test
----------------------------------------
Compiled translation files to .qm files.
----------------------------------------
----------------------
Regression Test Suite
----------------------
nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module
#1 Test that the plugin __init__ will validate on plugins.qgis.org. ... ok
#2 Test we can click cancel. ... ok
#3 Test we can click OK. ... ok
#4 Test that QGIS properly parses a wkt string. ... FAIL
#5 QGIS environment has the expected providers ... FAIL
#6 Test we can click OK. ... ok
#7 Test that translations work. ... FAIL
======================================================================
FAIL: Test that QGIS properly parses a wkt string.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/isaac/.qgis2/python/plugins/MakeOSMRoutableNetwork/test/test_qgis_environment.py", line 50, in test_projection
self.assertEqual(auth_id, expected_auth_id)
AssertionError: u'' != 'EPSG:4326'
======================================================================
FAIL: QGIS environment has the expected providers
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/isaac/.qgis2/python/plugins/MakeOSMRoutableNetwork/test/test_qgis_environment.py", line 34, in test_qgis_environment
self.assertIn('gdal', r.providerList())
AssertionError: 'gdal' not found in []
======================================================================
FAIL: Test that translations work.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/isaac/.qgis2/python/plugins/MakeOSMRoutableNetwork/test/test_translations.py", line 49, in test_qgis_translations
self.assertEqual(real_message, expected_message)
AssertionError: u'Good morning' != 'Goeie more'
----------------------------------------------------------------------
Ran 7 tests in 0.015s
FAILED (failures=3)
----------------------
If you get a 'no module named qgis.core error, try sourcing
the helper script we have provided first then run make test.
e.g. source run-env-linux.sh <path to qgis install>; make test
----------------------
Before running it, I ran:
isaac@ib:~/.qgis2/python/plugins/MakeOSMRoutableNetwork$ source scripts/run-env-linux.sh /usr/bin/qgis
/usr/bin/qgis
QGIS PATH: /usr/bin/qgis
This script is intended to be sourced to set up your shell to
use a QGIS 2.0 built in /usr/bin/qgis
To use it do:
source scripts/run-env-linux.sh /your/optional/install/path
Then use the make file supplied here e.g. make guitest
This should be my qgis installation path, since I get this when running which qgis:
isaac@ib:~/.qgis2/python/plugins/MakeOSMRoutableNetwork$ which qgis
/usr/bin/qgis
Any ideas? I cannot get the test suite to run in my IDE either (PyCharm)
I am following this video: https://www.youtube.com/watch?v=DiwQ0SJYzJ8
My test suite fails when I run "make test":
Before running it, I ran:
This should be my qgis installation path, since I get this when running
which qgis
:Any ideas? I cannot get the test suite to run in my IDE either (PyCharm)