You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -411,12 +411,34 @@ You should add some tests.
411
411
Tests succeeded.
412
412
```
413
413
414
+
If you are using [the `spec-node` test runner](https://purescript-spec.github.io/purescript-spec/running/#running-under-node),
415
+
you can use its command-line options to select a subset of tests with
416
+
`--example` or rerun previously failed tests with `--only-failures`:
417
+
418
+
```console
419
+
$ spago test -- --example "some test"
420
+
$ spago test -- --only-failures
421
+
```
422
+
423
+
Note that you have to separate test runner options with a double dash `--` to distinguish them from Spago's own options.
424
+
If you're on PowerShell (Windows), you will also need to quote the double dash:
425
+
426
+
```console
427
+
> spago test'--' --example "some test"
428
+
> spago test'--' --only-failures
429
+
```
430
+
431
+
This has to do with an unfortunate interaction between Node bootstrapping mechanism and the way PowerShell handles parameters.
432
+
433
+
See [the docs](https://purescript-spec.github.io/purescript-spec/running/#running-under-node)
434
+
for more useful options.
435
+
414
436
As with the `run` command, it's possible to configure the tests using the `spago.yaml` - most importantly to separate test dependencies from the dependencies of your application/library.
415
437
416
438
Please see [the section about the configuration format](#the-configuration-file) for more info, but in the meantime note that it's possible to install test dependencies by running:
0 commit comments