https://github.com/sagikazarmark/go-test-call-dagger
Calling Dagger from go test
https://github.com/sagikazarmark/go-test-call-dagger
Last synced: 7 months ago
JSON representation
Calling Dagger from go test
- Host: GitHub
- URL: https://github.com/sagikazarmark/go-test-call-dagger
- Owner: sagikazarmark
- Created: 2022-11-18T22:21:50.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-18T22:22:03.000Z (almost 3 years ago)
- Last Synced: 2025-03-06T18:52:45.895Z (7 months ago)
- Language: Go
- Size: 28.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Calling Dagger from `go test`
**Do NOT try this at home....or anywhere else :)**
This is a crazy experiment showing that [Dagger](https://dagger.io/) can be called from a simple Go test.
To avoid an endless cycle of Dagger running dagger again though, the appropriate test is guarded so it needs to be called by name:```shell
go test -run TestDagger -v .
```