You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Skip dummy subtest when EnvMatrix expands to empty (#4893)
## Changes
When all EnvMatrix values are empty lists (e.g.,
`DATABRICKS_BUNDLE_ENGINE = []`), run the test directly without creating
a `#00` dummy subtest.
Before:
```
--- PASS: TestAccept/bundle/foo (0.00s)
--- PASS: TestAccept/bundle/foo/#00 (1.23s)
```
After:
```
--- PASS: TestAccept/bundle/foo (1.23s)
```
This allows tests to opt out of the default engine matrix by setting
`DATABRICKS_BUNDLE_ENGINE = []` without creating a confusingly-named
subtest.
## Tests
Added selftests:
- `selftest/envmatrix_empty` — verifies no subtest is created when all
EnvMatrix values are empty
- `selftest/envmatrix_mixed` — verifies empty vars are dropped while
non-empty vars still create subtests
0 commit comments