Same test program using autograde and on

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 I can get a Java repository to autograde in github classroom through JUnit5. But I cannot get that same test program to run on

I figured it out. If you want to see answer go to:


What parameters did you use when filling in these two screens?
Screen Shot 2020-07-31 at 10.57.46 AM

… and this one?

Screen Shot 2020-07-31 at 10.58.03 AM

I have been getting my cloned repos to run by adding run = ‘sh’ as my run command instruction and then creating a root file containing something like this:

cd ‘Concentration’/src
javac *.java
java PlayGame

I don’t fill in the 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 I give very explicit instructions on how to get everything working. Hope that helps.


Steve, that worked - THANK YOU!

I am trying to set up the autograding for my students. I tried Maven, but the “Work in” button disappeared. I’m guessing it is because they don’t work together…

For JUnit, do you include that run command just so the students can do the testing in Github? Or is that just for students to be able to run it in

The work in button is a separate issue that’s happening. Maven should work fine.

Do you know what the issue is? I’m getting ready to assign a set of labs on Friday and am trying to figure out if I need to work on another IDE. Half of my students are learning from home - with whatever devices they have - so I’m having to use web-based IDEs.

Here’s the post were teachers are talking about it.

Thank you!

I’m having problems with Maven in I’m unsure of how to configure the run button with the file structure needed for the testing.