Skip to content

Sample CircuitSim tester that uses the circuitsim-tester library.

Notifications You must be signed in to change notification settings

zucchini/sample-circuitsim-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

sample-circuitsim-tester

This is a sample for a CircuitSim tester that uses the circuitsim-tester library. The tested .sim files can be found in the tester directory. Note that this tester includes a number of Java files that each test a different .sim.

To build the tester jar, go to the tester/ directory, run ./gradlew jar and find the jar file in the build/libs directory.

Making your own tester

  1. Clone this repository
  2. Remove the .git directory.
  3. Edit the tester name in tester/settings.gradle.
  4. Add a GitHub Package Registry token to tester/gradle.properties, as described here
  5. Add any tests into the tester/src/main/java/io/zucchini/samplecircuitsimtester/ path, just like the ANDTests.java file. They will be discovered automatically.
  6. If you want, change the groupId in tester/build.gradle.
  7. If you want, change the package the sources are in. Make sure to update tha mainClassName string in tester/build.gradle afterwards.
  8. Build the autograder jar with ./gradlew jar in the tester/ directory
  9. Run the jar from the files/ directory and check for failing test cases
  10. Profit!

About

Sample CircuitSim tester that uses the circuitsim-tester library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages