An open API service indexing awesome lists of open source software.

https://github.com/exercism/clojure-representer


https://github.com/exercism/clojure-representer

community-contributions-paused exercism-representer exercism-tooling maintained

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# clojure-representer

## Running a solution

The Clojure representer runs using [babashka](https://github.com/babashka/babashka).
To generate a normalized representation of a solution:

``` sh
./bin/run.sh
# Example:
./bin/run.sh "armstrong-numbers" "resources/armstrong_numbers/0/" "resources/armstrong_numbers/0/"
```

`representation.txt` will be created in `out-dir` along with `mapping.json` containing the placeholder names.

## Running a solution in Docker

``` sh
./bin/run-in-docker.sh
```

## Testing the representer locally

To test 1000 solutions:

``` sh
./bin/run-tests.sh
```

## Testing the representer in Docker

This is run in CI. It builds a container and runs `/bin/run-tests.sh` in it.

``` sh
./bin/run-tests-in-docker.sh
```