Conversation
|
@copilot To test the unit testing setup, I need unit tests written for the IndexController (gov.nih.nci.bento) functionality. Write unit tests that confirm that endpoint works as expected. Do not modify core code, only write new unit tests. |
Co-authored-by: amattu2 <38357871+amattu2@users.noreply.github.com>
Co-authored-by: amattu2 <38357871+amattu2@users.noreply.github.com>
Co-authored-by: amattu2 <38357871+amattu2@users.noreply.github.com>
INS-1461 Add IndexController unit tests
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| run: mvn test | ||
|
|
||
| - name: Coveralls GitHub Action | ||
| uses: coverallsapp/github-action@v2 |
There was a problem hiding this comment.
The Coveralls GitHub Action needs to be configured to use the JaCoCo coverage report format. By default, it looks for LCOV format, but JaCoCo generates XML reports. You should add the 'format' parameter set to 'jacoco' to ensure the coverage report is properly parsed.
| uses: coverallsapp/github-action@v2 | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| format: jacoco |
| - "*" | ||
|
|
||
| permissions: | ||
| contents: read |
There was a problem hiding this comment.
The workflow needs write permissions for pull-requests to allow the Coveralls action to post comments on PRs. Consider adding 'pull-requests: write' to the permissions section to enable coverage report comments on pull requests.
| contents: read | |
| contents: read | |
| pull-requests: write |
Overview
This PR introduces unit testing workflows to the INS backend.
Change Details (Specifics)
Related Ticket(s)
INS-1461