Add utility to test specs individually

This commit is contained in:
Michael Miller 2022-11-29 03:14:24 -07:00
parent c256ef763e
commit 321c15407d
No known key found for this signature in database
GPG Key ID: AC78B32D30CE34A2
2 changed files with 10 additions and 0 deletions

View File

@ -51,6 +51,11 @@ spec mocks:
script:
- crystal spec --error-on-warnings --junit_output=. spec/spectator/mocks/
spec individual:
extends: spec
script:
- util/test-all-individually.sh
format:
script:
- shards

5
util/test-all-individually.sh Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -e
find spec/ -type f -name \*_spec.cr -print0 | \
xargs -0 -n1 time crystal spec --error-on-warnings -v