Skip to content

Commit

Permalink
chore: update bats to bats-core@latest
Browse files Browse the repository at this point in the history
Pivot from the ancient abandonware version to the modern community
version.

Bats is not a Go project, but it is fetchable via `go get`, so use
that tooling to pull it in.
  • Loading branch information
nisimond committed May 24, 2024
1 parent 21f7c3f commit dd46db8
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 1,040 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ dist/
result.xml
.task/
test/integration/tmp/
test/integration/vendor/
2 changes: 2 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ tasks:
- go install github.com/boumenot/gocover-cobertura@latest
- go install mvdan.cc/gofumpt@latest
- go install github.com/goreleaser/goreleaser@latest
- go get github.com/bats-core/bats-core@latest
- bash $(go env GOMODCACHE)/$(go list -m github.com/bats-core/bats-core | tr ' ' @)/install.sh ./test/integration/vendor/bats

deps:check:
desc: Check dependencies needed for development
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ require (
)

require (
github.com/bats-core/bats-core v1.11.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
github.com/avfs/avfs v0.33.0 h1:5WQXbUbr6VS7aani39ZN2Vrd/s3wLnyih1Sc4ExWTxs=
github.com/avfs/avfs v0.33.0/go.mod h1:Q59flcFRYe9KYkNMfrLUJney3yeKGQpcWRyxsDBW7vI=
github.com/bats-core/bats-core v1.11.0 h1:4gOM+vAg0gGry/G3rZhkkxxUgJjtpyaYdwwd4D8Rw/8=
github.com/bats-core/bats-core v1.11.0/go.mod h1:Fyz3Anl7OPc6kY1H3BilTcoa6skn3mS3lAUbm6EnMEE=
github.com/caarlos0/go-version v0.1.1 h1:1bikKHkGGVIIxqCmufhSSs3hpBScgHGacrvsi8FuIfc=
github.com/caarlos0/go-version v0.1.1/go.mod h1:Ze5Qx4TsBBi5FyrSKVg1Ibc44KGV/llAaKGp86oTwZ0=
github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
Expand Down
1 change: 0 additions & 1 deletion test/integration/vendor/bats/bin/bats

This file was deleted.

142 changes: 0 additions & 142 deletions test/integration/vendor/bats/libexec/bats

This file was deleted.

55 changes: 0 additions & 55 deletions test/integration/vendor/bats/libexec/bats-exec-suite

This file was deleted.

Loading

0 comments on commit dd46db8

Please sign in to comment.