Java testing utility
- Lints code using CheckStyle.
- Runs the tests.
- Compares the tests' output to expected output and highlights differences.
- Fix issues automagically with
$ java-test --fix
(using Google's source code formatter).
$ npm install --global https://github.com/itaisteinherz/java-test
$ java-test --help
Usage
$ java-test <file> [<tests> <tests_output>]
Options
--fix Automagically fix issues
--sun Use the Sun CheckStyle config (Google's is used by default)
Examples
$ java-test HelloWorld.java
$ java-test HelloWorld.java HelloWorldTests.java HelloWorldTests-output.java
MIT © Itai Steinherz