Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle Targets for Tests and Documentation #26

Merged
merged 10 commits into from
Jan 8, 2025

Conversation

jckreg
Copy link
Contributor

@jckreg jckreg commented Dec 17, 2024

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.

  • comments in the gradle config file 'build.gradle.kts' to improve understanding
  • changes to the gradle file to allow ./gradlew run to compile and run the full.Driver
    • this means it is currently the same as the full command but updates are coming to address this

if 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 .

@jckreg
Copy link
Contributor Author

jckreg commented Dec 17, 2024

The runner job has also been changed to include the passing of all unit tests before the branch can be merged

@jckreg jckreg mentioned this pull request Dec 17, 2024
@jckreg jckreg linked an issue Dec 17, 2024 that may be closed by this pull request
@jckreg jckreg mentioned this pull request Dec 18, 2024
build.gradle.kts Show resolved Hide resolved
build.gradle.kts Outdated Show resolved Hide resolved
@jckreg jckreg merged commit 2615c2d into develop Jan 8, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gradle Testing Targets
2 participants