-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
25 lines (20 loc) · 808 Bytes
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -----------------------------------------------
# ---- Just -----------------------------------
# ---- https://github.com/casey/just ----------
# -----------------------------------------------
set shell := [ "/bin/bash", "-eu", "-o", "pipefail", "-c" ]
set dotenv-load := false
export ROOT_DIRECTORY := justfile_directory()
# show this help
@_default:
just --list
# run all tests
@run_all_tests:
bash "{{ROOT_DIRECTORY}}/tests/bats_core/bin/bats" \
--jobs 2 \
--no-parallelize-within-files \
--timing \
{{ROOT_DIRECTORY}}/tests/*.bats
# run a specific test
@run_test name:
bash "{{ROOT_DIRECTORY}}/tests/bats_core/bin/bats" --timing {{ROOT_DIRECTORY}}/tests/*-{{name}}.bats