-
-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install bats only during test execution (#46)
* Install bats only during test execution * Install bats and bats-mock via npm
- Loading branch information
1 parent
6eb157e
commit 9893a91
Showing
6 changed files
with
11 additions
and
14 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bats | ||
|
||
load helpers/mocks/stub | ||
load ../node_modules/bats-mock/stub | ||
|
||
default_node_config=\ | ||
'{ | ||
|
Submodule mocks
deleted from
db2ac2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
#Install bats | ||
echo "Installing Bats before test execution" | ||
npm install [email protected] | ||
npm install [email protected] | ||
|
||
#Run tests | ||
./node_modules/.bin/bats /root/tests/*.bats |