Java#

Mission: Run junit tests on command line.

mkdir /tmp/lulz
cd /tmp/lulz

mkdir lib
cd lib
wget http://search.maven.org/remotecontent?filepath=junit/junit/4.11/junit-4.11.jar -O junit-4.11.jar
wget http://search.maven.org/remotecontent?filepath=org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar -O hamcrest-core-1.3.jar
cd ..

mkdir foo
cat <<'EOF' > foo/FooTest.java
package foo;

import static org.junit.Assert.*;

import org.junit.Test;

public class FooTest {

        @Test
        public void test() {
                assertTrue(true);
        }

}
EOF

export CLASSPATH='.:lib/junit-4.11.jar:lib/hamcrest-core-1.3.jar'
javac foo/FooTest.java
# pff... http://stackoverflow.com/questions/2235276/how-to-run-junit-testcases-from-command-line
java org.junit.runner.JUnitCore foo.FooTest