https://github.com/exercism/clojure-test-runner
https://github.com/exercism/clojure-test-runner
community-contributions-paused exercism-test-runner exercism-tooling maintained
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/exercism/clojure-test-runner
- Owner: exercism
- License: agpl-3.0
- Created: 2020-03-31T10:51:17.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-09T08:36:55.000Z (12 months ago)
- Last Synced: 2025-04-29T06:26:44.442Z (8 months ago)
- Topics: community-contributions-paused, exercism-test-runner, exercism-tooling, maintained
- Language: Clojure
- Size: 283 KB
- Stars: 2
- Watchers: 12
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Clojure test runner
The test runner takes three parameters:
1. The slug of the exercise (e.g. `two-fer`).
2. A path to an input directory (with a trailing slash) containing the submitted solution file(s) and any other exercise file(s).
3. A path to an output directory (with a trailing slash).
- A file named `results.json` will be written to the output directory.
- The runner will exit with an exit code of 0 if it has run successfully, regardless of the status of the tests.
```bash
$ ./bin/run.sh
```
To run this project's tests (i.e. test the test runner):
$ ./bin/run-tests-in-docker.sh
To test against the full clojure track and compare with with the results snapshots:
1. Clone the `exercism/clojure` repo to your local machine if you don't have it already
2. Run: `./bin/run-exercise-tests.clj path-to-clojure-repo` (defaults to `../clojure`)
Build an uberjar:
$ clojure -A:uberjar
Run that uberjar:
$ java -jar clojure-test-runner.jar
## Documentation
The specification of the interface that the test runners must conform to is found in the [track-tooling](https://github.com/exercism/v3-docs/tree/master/anatomy/track-tooling) section of the v3-docs repo.
## Copyright
All content in this repository is copyright to Exercism and licenced under AGPL