This is a sample repository highlighting the Ketryx Platform features around Git-based configuration items and automated test reporting.
- A Java function annotated with a specification and corresponding JUnit test.
- A Markdown specification tested by a Markdown test case that is executed by a Jest test.
- A Javascript function annotated with a specification that is tested by a Cucumber test.
Automated tests are executed and reported to Ketryx as part of the CI/CD GitHub Actions workflow, with steps like the following:
- name: Report JS build to Ketryx
uses: Ketryx/ketryx-github-action@v1
if: success() || failure()
with:
ketryx-url: ${{ vars.KETRYX_URL }}
project: ${{ vars.KETRYX_PROJECT }}
version: ${{ vars.KETRYX_VERSION }}
api-key: ${{ secrets.KETRYX_API_KEY }}
build-name: ci-js
test-junit-path: test-results/jest-junit.xml
test-cucumber-path: test-results/cucumber-report.json
- name: Report Java build to Ketryx
uses: Ketryx/ketryx-github-action@v1
if: success() || failure()
with:
ketryx-url: ${{ vars.KETRYX_URL }}
project: ${{ vars.KETRYX_PROJECT }}
version: ${{ vars.KETRYX_VERSION }}
api-key: ${{ secrets.KETRYX_API_KEY }}
build-name: ci-java
test-junit-path: java-src/build/test-results/test/*.xml
npm install
Run unit and integration tests:
npm run test:unit-integration-ci
Run tests in watch mode:
npm test
Run end-to-end tests:
npm run test:e2e
Run Java unit tests:
cd java-src
./gradlew test