Gradle Targets for Tests and Documentation #26
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added Gradle targets for tests and documentation
Tests
to run unit tests and generate the HTML report run:
./gradlew test
This will compile all unit tests then run them. Currently there is not much output on the command line however, html files are generated with the full report. These files can be found in the build/reports/tests/test folder. The file index.html is the main page for these. Using the files you can sort by classes, packages, tests and others as well as seen any outputs or errors as well as pass fail.
Documentation
to generate documentation run:
./gradlew javadoc
This will compile the source code needed and then generate the documentation html files kept at build/docs/javadoc with index.html being the main entry point.
Currently when the javadoc task is run there are many warnings shown on the console. These are primarily for methods that do not yet have javadoc comments for them and can largely be ignored. If you would like to help add to the documentation then you can run the command and work through the list adding the necessary comments
I have changed the comments in several files to be accurate to the updates to the methods so as to remove errors from the javadoc task
Misc.
./gradlew run
to compile and run the full.Driverif having issues with any of the targets one can try
./gradlew clean
to put in a clean build state. Or./gradlew reset
to remove all code generated files and objects .