school/java/runJavaTests/runJavaTests.sh

15 lines
483 B
Bash
Raw Permalink Normal View History

2021-02-03 11:09:41 -05:00
#!/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/