MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / testMoocProject

Method testMoocProject

tests/testmooc.cpp:17–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include <QSignalSpy>
16
17void 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
29void TestIDE::testMoocTerms()

Callers

nothing calls this directly

Calls 2

mwMethod · 0.80
currentModelFileMethod · 0.80

Tested by

no test coverage detected