Skip to content
Permalink
Browse files

Fix for app paths not found by test

  • Loading branch information
dakcarto committed Aug 25, 2012
1 parent 9e73629 commit ca7fa302429b49e2300c7bca088a6b1397b14291
Showing with 12 additions and 0 deletions.
  1. +12 −0 tests/src/core/testqgsexpression.cpp
@@ -16,6 +16,7 @@
#include <QObject>
#include <QString>
#include <QObject>
#include <qgsapplication.h>
//header for class being tested
#include <qgsexpression.h>
#include <qgsfeature.h>
@@ -31,6 +32,17 @@ class TestQgsExpression: public QObject
Q_OBJECT;
private slots:

void initTestCase()
{
//
// Runs once before any tests are run
//
// init QGIS's paths - true means that all path will be inited from prefix
QgsApplication::init();
QgsApplication::initQgis();
QgsApplication::showSettings();
}

void parsing_data()
{
QTest::addColumn<QString>( "string" );

0 comments on commit ca7fa30

Please sign in to comment.
You can’t perform that action at this time.