File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,8 @@ We also have an issue template for questions [here](https://github.com/controlpl
47
47
48
48
## What Should I Know Before I Get Started?
49
49
50
- ** If you want to run the acceptance tests** make sure to clone with ` -recurse-submodules ` or if you've already cloned the
51
- repo you can fetch the submodules with:
52
-
53
- ``` sh
54
- git submodule init
55
- git submodule update
56
- ```
50
+ The acceptance tests require some dependencies fetched via submodules. You can either clone the repo with ` --recurse-submodules `
51
+ or when running ` make test ` /` make test-acceptance ` it will automatically fetch them if they're missing.
57
52
58
53
## How Can I Contribute?
59
54
Original file line number Diff line number Diff line change @@ -83,8 +83,14 @@ test: ## unit and local acceptance tests
83
83
@echo " + $@ "
84
84
make test-unit build test-acceptance
85
85
86
+ test/bin/% :
87
+ git submodule update --init -- $@
88
+
89
+ .PHONY : bats
90
+ bats : test/bin/bats test/bin/bats-assert test/bin/bats-support # # fetch bats dependencies
91
+
86
92
.PHONY : test-acceptance
87
- test-acceptance : # # acceptance tests
93
+ test-acceptance : bats build # # acceptance tests
88
94
@echo " + $@ "
89
95
bash -xc ' cd test && ./bin/bats/bin/bats $(BATS_PARALLEL_JOBS) .'
90
96
You can’t perform that action at this time.
0 commit comments