Re: [Qgis-developer] Units tests for startup options?

2013-07-03 Thread Radim Blazek
On Thu, Jun 13, 2013 at 9:20 AM, Régis Haubourg
regis.haubo...@eau-adour-garonne.fr wrote:
 Thanks Tim.
 You confirm it's possible? I'm absolutly not able to tell if it's possible
 to test it or not.

I don't think that it is possible to add test for src/app/main.cpp
into the system we are using for other tests. It would be necessary to
run qgis executable to test that options, but AFAIK qgis cannot be run
in noninteractive mode.

I have got recently close to this problem because I wanted to add a
test for functions in QgisApp. I added a new constructor to QgisApp,
qgis_app lib and it is possible to test QgisApp from test unit. I'll
add it in 2.1 (https://github.com/blazek/Quantum-GIS/commit/f5ebe855)

Radim


 Régis



 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/Units-tests-for-startup-options-tp5059643p5059866.html
 Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Units tests for startup options?

2013-06-13 Thread Régis Haubourg
Thanks Tim. 
You confirm it's possible? I'm absolutly not able to tell if it's possible
to test it or not. 

Régis



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Units-tests-for-startup-options-tp5059643p5059866.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Units tests for startup options?

2013-06-12 Thread Régis Haubourg
I didn't find anything specific in 
https://github.com/qgis/Quantum-GIS/blob/master/tests/src/core/testqgsapplication.cpp

I will open a ticket as a reference for funding. please close it if test
exists. 
Régis





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Units-tests-for-startup-options-tp5059643p5059694.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Units tests for startup options?

2013-06-12 Thread Tim Sutton
Hi

On Wed, Jun 12, 2013 at 12:40 PM, Régis Haubourg
regis.haubo...@eau-adour-garonne.fr wrote:
 I there again,
 does anyone knows if unit test are available for startup options such as
 pluginpath environnement variable, configpath options..
 I would like to sponsor their creation, but was unable to find if they
 exists in the dashboard..

No I never wrote any tests like this. In fact there is no test for the
main.cpp (which does the base application startup and where those
command line options are parsed.

Regards

Tim

 régis



 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/Units-tests-for-startup-options-tp5059643.html
 Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer



--
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit http://linfiniti.com to find out about:
 * QGIS programming and support services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer