FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
stackrox/scripts/test_helpers.bats at master · stackrox/stackrox · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
stackrox
/
stackrox
Public
Notifications
You must be signed in to change notification settings
Fork
190
Star
1.3k
Code
Issues
54
Pull requests
604
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
stackrox
/
scripts
/
test_helpers.bats
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (12 loc) · 657 Bytes
Breadcrumbs
stackrox
/
scripts
/
test_helpers.bats
Copy path
File metadata and controls
14 lines (12 loc) · 657 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
#!
/usr/bin/env bats
#
Allow to run the tests locally provided that bats-helpers are installed.
#
If $BATS_CORE_ROOT is set, an attempt is made to load them from that directory,
#
otherwise they are expected in the default location $HOME/bats-core.
#
This makes sure that current behaviour is unaltered and existing workflows are not broken.
bats_helpers_root=
${BATS_CORE_ROOT
:-
${HOME}
/
bats-core}
if
[[
!
-f
"
${bats_helpers_root}
/bats-support/load.bash
"
]]
;
then
#
Location of bats-helpers in the CI image
bats_helpers_root=
"
/usr/lib/node_modules
"
fi
load
"
${bats_helpers_root}
/bats-support/load.bash
"
load
"
${bats_helpers_root}
/bats-assert/load.bash
"
Back
|
FazBrowse Home
|
New Git URL