A test runner automatically verifies if a submission passes all the tests.
This repository contains the F# test runner, which implements the test runner interface.
To run a solution's tests, follow these steps:
- Open a command prompt in the root directory.
- Run
./run.ps1 <exercise> <input-directory> <output-directory>
. This script will:- Make sure all tests run (no skipped tests) for the solution found in
<input-directory>
. - Run all the tests.
- Once the script has completed, the test results will be written to
<output-directory>/results.json
.
- Make sure all tests run (no skipped tests) for the solution found in
To run a solution's tests using a Docker container, follow these steps:
- Open a command prompt in the root directory.
- Run
./run-in-docker.ps1 <exercise> <input-directory> <output-directory>
. This script will:- Make sure all tests run (no skipped tests) for the solution found in
<input-directory>
. - Run all the tests.
- Once the script has completed, the test results will be written to
<output-directory>/results.json
.
- Make sure all tests run (no skipped tests) for the solution found in
The scripts in this repository are written in PowerShell. As PowerShell is cross-platform nowadays, you can also install it on Linux and macOS.