Testing student code in multiple ways

Is there a way for me to have my students test their Java programs with both Unit Tests and Input Output tests? I want them to check their output, but I also want to use unit tests to read their code and check for specific code elements. If I can’t do both, is there a way for me to check input/output using a unit test? I have figured out how to write a unit test for simple output but am lost trying to check output when input is involved.

1 Like

Hey @user2863130!

Thank you for reaching out. It is not possible to run I/O tests and unit tests for the same project.

I’m not sure of the current state of unit testing in Replit, but this might be helpful.
java - JUnit testing with simulated user input - Stack Overflow