Commit de1bcdb
committed
Change how test-cli is running
The cli-test is in the tests directory. It is a separate go module,
because we don't want it to run with the unit tests when running
go test ./...
But this approach causes issues with automatic update of dependencies,
because the go.mod in the tests directory does not get automatic
updates, and then fauls in CI.
Instead, this commit changes the cli-test to only run if the RUN_CLI_TESTS
environment variable is set to "true".
In addition, this commit stopped using the deprecated testscript.RunMain
function, and replaces it with the recommended testscript.Main function.1 parent 789e9e9 commit de1bcdb
File tree
5 files changed
+8
-49
lines changed- cmd/ginkgolinter/cli
- tests
5 files changed
+8
-49
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments