You can use this project with the IsoGrad or BattleDev platforms.
Once you pick-up the exercice you want to solve, download the sample using the "Download" button on the website IDE.
Open the SampleRunnerTest file.
Fill in the executors
variable with the technology you want to use (you can comment lines with the technology your aren't using)
// Example for PHP
private val executors = listOf(
PhpExecutor("src\\main\\php\\main.php")
)
// Example for Python
private val executors = listOf(
Python3Executor("src\\main\\python\\main.py"),
)
// Example for Java
private val executors = listOf(
JavaExecutor(IsoContest::main),
)
// Example for Kotlin
private val executors = listOf(
KotlinExecutor(::main),
)
Define the zip file location where you downloaded the sample using the zipSamplePath
variable.
Then run your code with the sample using the command
mvnw test
Tips: If you are using Intellij, you can use the green arrow in the SampleRunnerTest file and enjoy the JUnit report integrated in Intellij.
Tips: If you only use one technology, you can delete the others folders in the src/main folder to speed up the compilation time.
- Debug mode for Python (pdb ?)
- Debug mode for PHP (Xdebug)
- Allow using directly the URL link for the sample file (instead of download the file and set the location on the filesystem)
- Externalize Executor, zipSamplePath, and showOutput in a dedicated configuration file