Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bonsai-oss/testfmt
Tool running executable files for integration tests with exporting the result in different formats.
https://github.com/bonsai-oss/testfmt
integration-testing junit test-automation testing xml
Last synced: 3 days ago
JSON representation
Tool running executable files for integration tests with exporting the result in different formats.
- Host: GitHub
- URL: https://github.com/bonsai-oss/testfmt
- Owner: bonsai-oss
- License: mit
- Created: 2023-12-06T20:34:53.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-04-20T15:11:52.000Z (7 months ago)
- Last Synced: 2024-04-20T16:58:58.134Z (7 months ago)
- Topics: integration-testing, junit, test-automation, testing, xml
- Language: Go
- Homepage: https://gitlab.com/bonsai-oss/tools/testfmt
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# testfmt
Testfmt is a command line tool executing tests in a given directory and formatting the output in common machine-readable formats.
## Usage
All executable files in the given directory will be executed. The output of the tests will be formatted in the given format and written to the output file.
Currently, the following formats are supported:
- `junit` - JUnit XML format
- `none` - No formatting, just print the output to stdout### Gitlab CI
This tool is intended to be used to run integation tests in Gitlab CI. The following example shows how to use it in a `.gitlab-ci.yml` file.
You just need to replace the `./test/integration` path with the path to your integration tests.```yaml
integration test:
image: debian:stable-slim
before_script:
- wget https://gitlab.com/bonsai-oss/tools/testfmt/-/jobs/5697209953/artifacts/raw/build/testfmt-linux-amd64 -O testfmt && chmod +x testfmt
script:
- ./testfmt -f junit -o test-results.xml -d ./test/integration
artifacts:
reports:
junit: test-results.xml
when: always
```