| 15 | #include <QSignalSpy> |
| 16 | |
| 17 | void TestIDE::testMoocProject() |
| 18 | { |
| 19 | TestMocker mock(QString(MINIZINC_IDE_PATH) + "/data/mooc/TestProject/TestProject.mzp"); |
| 20 | MainWindow* w = mock.mw(); |
| 21 | QVERIFY(w->currentModelFile().endsWith("submission.mzn")); |
| 22 | QCOMPARE(w->ui->actionSubmit_to_MOOC->text(), "Submit to Test Course"); |
| 23 | w->ui->actionSubmit_to_MOOC->trigger(); |
| 24 | QVERIFY(w->moocSubmission->ui->runButton->isEnabled()); |
| 25 | w->moocSubmission->close(); |
| 26 | } |
| 27 | |
| 28 | |
| 29 | void TestIDE::testMoocTerms() |
nothing calls this directly
no test coverage detected