FaisalAfroz / csharp-test-runner

An experimental test runner for Exercism's C# Track

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exercism C# test runner

A test runner automatically verifies if a submission passes all the tests.

This repository contains the C# test runner, which implements the test runner interface.

Running the tests

To run a solution's tests, follow these steps:

  1. Open a command prompt in the root directory.
  2. Run ./run.ps1 <exercise> <input-directory> <output-directory>. This script will:
    1. Make sure all tests run (no skipped tests) for the solution found in <input-directory>.
    2. Run all the tests.
    3. Once the script has completed, the test results will be written to <output-directory>/results.json.

Running the tests using Docker

To run a solution's tests using a Docker container, follow these steps:

  1. Open a command prompt in the root directory.
  2. Run ./run-in-docker.ps1 <exercise> <input-directory> <output-directory>. This script will:
    1. Make sure all tests run (no skipped tests) for the solution found in <input-directory>.
    2. Run all the tests.
    3. Once the script has completed, the test results will be written to <output-directory>/results.json.

Scripts

The scripts in this repository are written in PowerShell. As PowerShell is cross-platform nowadays, you can also install it on Linux and macOS.

About

An experimental test runner for Exercism's C# Track

License:GNU Affero General Public License v3.0


Languages

Language:C# 91.8%Language:PowerShell 6.8%Language:Dockerfile 1.4%Language:Shell 0.1%