Skip to content

Commit

Permalink
Python support: renamed our edge tests to coverage tests (#2178).
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Dec 11, 2019
1 parent a04843c commit d9bb208
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/plugins/support/PythonSupport/tests/tests.cpp
Expand Up @@ -45,14 +45,15 @@ void Tests::basicTests()

//==============================================================================

void Tests::edgeTests()
void Tests::coverageTests()
{
// Some edge tests to make sure that we can safely use our Python wrappers
// Some coverage tests to make sure that we test all of our Python wrappers
// and that they can be safely used

QStringList output;

QVERIFY(!OpenCOR::runCli(QStringList() << "-c" << "PythonShell" << OpenCOR::fileName("src/plugins/support/PythonSupport/tests/data/edgetests.py"), output));
QCOMPARE(output, OpenCOR::fileContents(OpenCOR::fileName("src/plugins/support/PythonSupport/tests/data/edgetests.out")));
QVERIFY(!OpenCOR::runCli(QStringList() << "-c" << "PythonShell" << OpenCOR::fileName("src/plugins/support/PythonSupport/tests/data/coveragetests.py"), output));
QCOMPARE(output, OpenCOR::fileContents(OpenCOR::fileName("src/plugins/support/PythonSupport/tests/data/coveragetests.out")));
}

//==============================================================================
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/support/PythonSupport/tests/tests.h
Expand Up @@ -35,7 +35,7 @@ class Tests : public QObject

private slots:
void basicTests();
void edgeTests();
void coverageTests();
};

//==============================================================================
Expand Down

0 comments on commit d9bb208

Please sign in to comment.