-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate frontend tests & reports into gradle/CI
Enables the GitHub actions build to successfully execute the frontend JavaScript tests and publish the test and coverage results. Had to rename some of the package.json scripts to use '-' instead of ':', e.g., "test:ci" to "test-ci". Gradle interprets colons in command line task names specially, which meant it was impossible to invoke "pnpm_test:ci". Adding the frontend coverage also necessitated adding a second Coveralls upload GitHub Action, and specifying a `file` for the original action. The original action uploads a JaCoCo XML file relative to strcalc/src/main/java. The new action uploads an LCOV file relative to strcalc/src/main/frontend.
- Loading branch information
Showing
4 changed files
with
32 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
const BUILD_DIR = '../../../build/' | ||
export default { | ||
base: '/strcalc', | ||
build: { | ||
outDir: '../../../build/webapp' | ||
outDir: BUILD_DIR + 'webapp' | ||
}, | ||
test: { | ||
outputFile: BUILD_DIR + 'test-results/test-frontend/TESTS-TestSuites.xml', | ||
coverage: { | ||
reporter: ['text', 'html', 'lcov'], | ||
reportsDirectory: BUILD_DIR + 'reports/frontend/coverage' | ||
} | ||
} | ||
} |