Test-native CI
Dagger 1.0 sees each of your tests, not only the job that runs them. Official modules find your tests, run the tests that you select, and report each test separately. When a test fails, you see which test, and you run only that test again. You do not need to change your tests.
For example, with the Go module:
dagger check -llists each test.dagger check --go-test=TestGetruns one test.- The trace shows each test with its status, duration and logs, in the terminal and in Dagger Cloud.
- The trace gives a link that runs the same tests again.
The module adds OpenTelemetry tracing when it runs your tests. No code change is necessary. Each test is a span with the standard OpenTelemetry test attributes. Any test tool that sends these attributes also works with Dagger. You select Go tests one by one, and Vitest, Jest, Playwright and pytest tests by file.