Public | Automated Build

Last pushed: a year ago
Short Description
Override of CodinGame maven3 + junit4 to test usage of multiple projects
Full Description


First, this runner compiles the project and generate all jars (project + dependencies).

At each play, it compiles user's answer using javac and run the specified testcase using junit4.

How to Use

To use this runner for your project, edit the codingame.yml file and add the following lines to your project:

  name: codingame/java-maven3-junit4-runner
  version: 1.1.1-java-8


A Git repository example

├── codingame.yml
├── markdowns
│   └── <YOUR_LESSONS>.md
└── projects
    └── example                    #Your project root
        ├── src/main/java
        │   └──       #The stub provided to the user
        └── src/test/java
            └──   #Your JUnitTest Class

In your CS project:

public class Example
     * This method should return the sum between a and b
    public int sum(int a, int b) {
        return 1;

import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class ExampleTest {
    private Example example;
    public void init() {
        example = new Example();

    public void testSum(){
        int a = 23487;
        int b = 240587;
        assertEquals(example.sum(a, b), a + b);

In your lesson:

@[Fix the following code so that the function DoSum returns a sum of integer]({"stubs": ["src/main/java/"],"command": "ExampleTest#testSum"})
Docker Pull Command