Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coot/purescript-karma-test-unit
Karma runner for purescript-test-unit.
https://github.com/coot/purescript-karma-test-unit
karma karma-runner purescript test-runner unit-testing
Last synced: 20 days ago
JSON representation
Karma runner for purescript-test-unit.
- Host: GitHub
- URL: https://github.com/coot/purescript-karma-test-unit
- Owner: coot
- License: mit
- Created: 2017-03-17T21:32:41.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-30T07:05:38.000Z (over 6 years ago)
- Last Synced: 2024-11-03T11:07:35.921Z (about 2 months ago)
- Topics: karma, karma-runner, purescript, test-runner, unit-testing
- Language: PureScript
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Karma runner for PureScript [Test.Unit](https://pursuit.purescript.org/packages/purescript-test-unit/10.0.2/docs/Test.Unit) package
Just run `npm test` and you will see PureScript code run inside Karma.
A simple karma configuration:
```javascript
module.exports = config => {
config.set({
autoWatch: true,
browsers: ["Chrome"],
files: [
"karma/index.js",
],
reporters: ["spec"],
singleRun: false
})
}
```Then just compile your tests to `karma/index.js` with
```bash
pulp browserify --main 'Test.Main' -I test --to karma/index.js
```
and run the tests with
```bash
karma start --single-run
```Check the `packcage.json` to see how to automate that with npm scripts.