-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
28 lines (23 loc) · 837 Bytes
/
Justfile
File metadata and controls
28 lines (23 loc) · 837 Bytes
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
26
27
28
# -----------------------------------------------
# ---- Just -----------------------------------
# ---- https://github.com/casey/just ----------
# -----------------------------------------------
set shell := [ "/bin/bash", "-eu", "-o", "pipefail", "-c" ]
set dotenv-load := false
export ROOT_DIRECTORY := justfile_directory()
[private]
@default:
just --list
# Run a single or all tests
test name="":
#! /bin/bash
if [[ -n "{{name}}" ]]; then
bash "{{ROOT_DIRECTORY}}/tests/bats_core/bin/bats" \
--timing {{ROOT_DIRECTORY}}/tests/*-{{name}}.bats
else
bash "{{ROOT_DIRECTORY}}/tests/bats_core/bin/bats" \
--jobs 2 \
--no-parallelize-within-files \
--timing \
{{ROOT_DIRECTORY}}/tests/*.bats
fi