Skip to content

Commit

Permalink
Fix for app paths not found by test
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Aug 25, 2012
1 parent 9e73629 commit ca7fa30
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/src/core/testqgsexpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <QObject>
#include <QString>
#include <QObject>
#include <qgsapplication.h>
//header for class being tested
#include <qgsexpression.h>
#include <qgsfeature.h>
Expand All @@ -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" );
Expand Down

0 comments on commit ca7fa30

Please sign in to comment.