This is a sample repository highlighting the Ketryx Platform features around Git-based configuration items for our webinar about Git for IEC 62304.
The sample code itself is a tiny web application based on Create Next App with TypeScript and Cucumber code. In addition, it contains some Java code.
- Java function and corresponding JUnit test
- Markdown specification (linked to fulfilled requirements in Git and Jira, and an introduced risk in Jira) and corresponding Cucumber test
- Markdown requirements (linked to parent requirements in Jira)
- Markdown test (as a basis to create manual test executions in Jira)
- Automated test implementing a Test Case written in Jira
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