Skip to content
Permalink
Browse files

Dump html report after running vector tiles test

  • Loading branch information
nyalldawson committed Aug 31, 2020
1 parent 2fa9919 commit 411ea52b2fed68dcb6c6afc3166f732d400af7f1
Showing with 11 additions and 0 deletions.
  1. +11 −0 tests/src/core/testqgsvectortilelayer.cpp
@@ -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();
}

0 comments on commit 411ea52

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