Skip to content

Commit 9089827

Browse files
authored
Merge pull request #65 from dodona-edu/develop
Breaking release
2 parents 4df9310 + afc4368 commit 9089827

File tree

267 files changed

+2233
-1763
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

267 files changed

+2233
-1763
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,11 @@ Since the tests are mostly just jUnit tests, IntelliJ and other IDE's provide su
9191
Per exercise, create a new project. The `config.json` file should be in the project root. Mark (or create) the `workdir`, `evaluation` and `solution` directories as "sources root". Add jUnit 4 as a dependency of the project.
9292

9393
If your exercises use some Dodona-specific features, such as the `TabTitle` or the `AssertionStubber`, add the Judge as a dependency. Opening this repository as an IntelliJ project should allow you to create a JAR.
94+
95+
## Developing the judge
96+
97+
While developing, you can use `./integration-tests/run` to validate whether the judge is working properly. It checks the judge's output JSON against previous results (stored as `result.json`) and monitors whether something has changed.
98+
99+
You can also use `./integration-tests/run <path-to-repo>` to run the same checks on an exercise repository, which is useful to validate a larger set op exercises.
100+
101+
With `---overwrite`, you can overwrite previous `result.json` files with the current output, and with `-v` you can check for judge error output and view the exact changes when output differs.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
import org.junit.runners.Suite;
3-
import org.junit.runner.RunWith;
2+
import org.junit.platform.suite.api.SelectClasses;
3+
import org.junit.platform.suite.api.Suite;
44

5-
@RunWith(Suite.class)
6-
@Suite.SuiteClasses({
5+
@Suite
6+
@SelectClasses({
77
TestWriterTest.class,
88
})
99
public class TestSuite {}

examples/diffing-testwriter/evaluation/TestWriterTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
import org.junit.Assert;
2-
import org.junit.Test;
3-
import org.junit.Before;
1+
42

53
import dodona.reflection.AssertionStubber;
4+
import org.junit.jupiter.api.BeforeEach;
5+
import org.junit.jupiter.api.Test;
66

77
public class TestWriterTest {
88

99
private static dodona.junit.TestWriter testWriter = new dodona.junit.TestWriter();
1010

1111
private TestWriterInterface solution;
1212

13-
@Before public void initialize() {
13+
@BeforeEach
14+
public void initialize() {
1415
solution = new AssertionStubber().stub(TestWriterInterface.class, TestWriter.class);
1516
}
1617

examples/i18n/config.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

examples/i18n/description/description.en.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/i18n/description/description.nl.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/i18n/evaluation/TestSuite.java

Lines changed: 0 additions & 9 deletions
This file was deleted.

examples/i18n/evaluation/TranslatedTest.java

Lines changed: 0 additions & 22 deletions
This file was deleted.

examples/i18n/evaluation/properties/descriptions.en.properties

Lines changed: 0 additions & 2 deletions
This file was deleted.

examples/i18n/evaluation/properties/descriptions.nl.properties

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)