https://github.com/eeue56/elm-test-runner
https://github.com/eeue56/elm-test-runner
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/eeue56/elm-test-runner
- Owner: eeue56
- License: mit
- Created: 2016-09-21T23:43:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-21T23:46:24.000Z (over 8 years ago)
- Last Synced: 2025-04-15T01:15:19.790Z (18 days ago)
- Language: Python
- Size: 5.86 KB
- Stars: 3
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elm-test-runner
Only run and compile some test files at a time. Only rules are that you need to expose `spec : Test` in any files you want to have things run from.


```
usage: run_single_elm_test.py [-h] [--module] [--root ROOT] [--bin BIN]
[--output OUTPUT]
spec_file [spec_file ...]
```
Run tests in files manually by just giving their name. Give multiple names if you want. Globs too.Using the `--module` flag will create a test suite generated from every module that imports that module.
```
This script will:
- Grab the files
- Find the exposed names from a file
- Group all the ones with the type `: Test` or the name `spec`
- Create a test suite composed from all the found tests in each file
- Run them!positional arguments:
spec_file give relative path to the spec file you want to run or the name of the moduleoptional arguments:
-h, --help show this help message and exit
--module use a module name
--root ROOT define the root folder where your elm-package lives
--bin BIN define a custom binary location - if none provided, default to global
--output OUTPUT define a custom output file
```