Can anybody point to an example repository that will autograde when students check in their code and also allows them to run the same test program when on repl.it? I can get a Java repository to autograde in github classroom through JUnit5. But I cannot get that same test program to run on repl.it.
I figured it out. If you want to see answer go to: https://github.com/saronson/autograding-example-junit5
What parameters did you use when filling in these two screens?
… and this one?
I have been getting my cloned repos to run by adding run = ‘sh main.sh’ as my run command instruction and then creating a main.sh root file containing something like this:
I don’t fill in the repl.it box but I create a .replit file in the repository that says:
language = “java”
run = “export CLASSPATH=”.:/run_dir/junit-4.12.jar:/run_dir/hamcrest-core-1.3.jar:/run_dir/json-simple-1.1.1.jar:./jars/*";javac *.java; java Main"
However, I basically gave up on junit5 and went back to using junit4 which I know how to use. So, now, I have a much better example of everything now at saronson/labTemplate. If you look at the Readme.md I give very explicit instructions on how to get everything working. Hope that helps.
Steve, that worked - THANK YOU!