This is Exercism's test runner for the Go track.
The test runner takes 3 parameters:
- the exercise
slug, e.g.two-fer - the
pathcontaining the solution to test - the
output pathfor the test results
Example to execute for development (Go needs to be installed):
cd path/containing/tests
go test --json . | go run ~/go-test-runner/cmd/testoutput > result.jsonTo build execute the following from the repositories root directory:
docker build -t exercism/go-test-runner .To run from docker pass in the solutions path as a volume and execute with the necessary parameters:
docker run -v $(PATH_TO_SOLUTION):/solution exercism/go-test-runner ${SLUG} /solution /solutionExample:
docker run -v ~/solution-238382y7sds7fsadfasj23j:/solution exercism/go-test-runner two-fer /solution /solution