diff --git a/runJavaTests/runJavaTests.sh b/runJavaTests/runJavaTests.sh new file mode 100755 index 0000000..0f75bb7 --- /dev/null +++ b/runJavaTests/runJavaTests.sh @@ -0,0 +1,14 @@ +#!/bin/bash +javac -cp /usr/share/java/junit4.jar *.java +java -cp /usr/share/java/junit4.jar:. org.junit.runner.JUnitCore $1 + +### Works on Ubunutu (tested on Mint). + +### Install Junit4 from the repos. +### NOTE: Make sure you are using the right version of Junit, +### Update this script as needed as tests are upgraded for correct version + +### Useage: ./runJavaTests.sh [test-name] +### Example: ./runJavaTests.sh MyStudentTest + +### Works just fine everywhere if put in /usr/share/bin/