#!/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/