Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests for command line arguments #749

Merged
merged 3 commits into from
Sep 15, 2013
Merged

Conversation

mhugo
Copy link

@mhugo mhugo commented Jul 18, 2013

This patchset includes an new python unit test for testing path passed as command line arguments. It especially tests paths with spaces and special characters (accents).
Since there is no automated GUI testing framework yet, it relies on starting a QGIS instance, waiting for some file to be created (eventually by means of a small plugin) and killing the instance after some timeout. So, some graphical parts of QGIS may be shown during the test. This is not very clean, but circumvents the lack of GUI testing for now.

It also includes fix for path parsing in main.cpp as well as encoding issues in QGIS_PLUGINPATH detected during development of these tests

Tested on Linux and Windows, but NOT on OSX

Refs Redmine issue #8045

@ghost ghost assigned timlinux Aug 7, 2013
timlinux added a commit that referenced this pull request Sep 15, 2013
Unit tests for command line arguments
@timlinux timlinux merged commit 64c947b into qgis:master Sep 15, 2013
@mhugo mhugo deleted the issue8045b branch March 18, 2014 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants