Skip to content

Commit

Permalink
Dump html report after running vector tiles test
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 31, 2020
1 parent 2fa9919 commit 411ea52
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/src/core/testqgsvectortilelayer.cpp
Expand Up @@ -99,10 +99,21 @@ void TestQgsVectorTileLayer::initTestCase()
lineStrokeColor, lineStrokeWidth,
pointFillColor, pointStrokeColor, pointSize ) );
mLayer->setRenderer( rend ); // takes ownership

mReport += QLatin1String( "<h1>Vector Tile Layer Tests</h1>\n" );
}

void TestQgsVectorTileLayer::cleanupTestCase()
{
QString myReportFile = QDir::tempPath() + "/qgistest.html";
QFile myFile( myReportFile );
if ( myFile.open( QIODevice::WriteOnly | QIODevice::Append ) )
{
QTextStream myQTextStream( &myFile );
myQTextStream << mReport;
myFile.close();
}

QgsApplication::exitQgis();
}

Expand Down

0 comments on commit 411ea52

Please sign in to comment.