In prior versions of Ginkgo specs the CLI filter flags (e.g. --focus, --label-filter) would override any programmatic focus. This behavior has proved surprising and confusing in at least the following ways:
users cannot combine programmatic filters and CLI filters to more efficiently select subsets of tests
CLI filters can override programmatic focus on CI systems resulting in an exit code of 0 despite the presence of (incorrectly!) committed focused specs.
Going forward Ginkgo will AND all programmatic and CLI filters. Moreover, the presence of any programmatic focused tests will always result in a non-zero exit code.
This change is technically a change in Ginkgo's external contract and may require some users to make changes to successfully adopt. Specifically: it's possible some users were intentionally using CLI filters to override programmatic focus. If this is you please open an issue so we can explore solutions to the underlying problem you are trying to solve.
Fixes
Programmatic focus is no longer overwrriten by CLI filters [d6bba86]
Maintenance
Bump github.com/onsi/gomega from 1.27.7 to 1.27.8 (#1218) [4a70a38]
Bump golang.org/x/sys from 0.8.0 to 0.9.0 (#1219) [97eda4d]
v2.10.0
2.10.0
Features
feat(ginkgo/generators): add --tags flag (#1216) [a782a77]
adds a new --tags flag to ginkgo generate
Fixes
Fix broken link of MIGRATING_TO_V2.md (#1217) [548d78e]
Maintenance
Bump golang.org/x/tools from 0.9.1 to 0.9.3 (#1215) [2b76a5e]
v2.9.7
2.9.7
Fixes
fix race when multiple defercleanups are called in goroutines [07fc3a0]
v2.9.6
2.9.6
Fixes
fix: create parent directory before report files (#1212) [0ac65de]
Maintenance
Bump github.com/onsi/gomega from 1.27.6 to 1.27.7 (#1202) [3e39231]
In prior versions of Ginkgo specs the CLI filter flags (e.g. --focus, --label-filter) would override any programmatic focus. This behavior has proved surprising and confusing in at least the following ways:
users cannot combine programmatic filters and CLI filters to more efficiently select subsets of tests
CLI filters can override programmatic focus on CI systems resulting in an exit code of 0 despite the presence of (incorrectly!) committed focused specs.
Going forward Ginkgo will AND all programmatic and CLI filters. Moreover, the presence of any programmatic focused tests will always result in a non-zero exit code.
This change is technically a change in Ginkgo's external contract and may require some users to make changes to successfully adopt. Specifically: it's possible some users were intentionally using CLI filters to override programmatic focus. If this is you please open an issue so we can explore solutions to the underlying problem you are trying to solve.
Fixes
Programmatic focus is no longer overwrriten by CLI filters [d6bba86]
Maintenance
Bump github.com/onsi/gomega from 1.27.7 to 1.27.8 (#1218) [4a70a38]
Bump golang.org/x/sys from 0.8.0 to 0.9.0 (#1219) [97eda4d]
2.10.0
Features
feat(ginkgo/generators): add --tags flag (#1216) [a782a77]
adds a new --tags flag to ginkgo generate
Fixes
Fix broken link of MIGRATING_TO_V2.md (#1217) [548d78e]
Maintenance
Bump golang.org/x/tools from 0.9.1 to 0.9.3 (#1215) [2b76a5e]
2.9.7
Fixes
fix race when multiple defercleanups are called in goroutines [07fc3a0]
2.9.6
Fixes
fix: create parent directory before report files (#1212) [0ac65de]
Maintenance
Bump github.com/onsi/gomega from 1.27.6 to 1.27.7 (#1202) [3e39231]
2.9.5
Fixes
ensure the correct deterministic sort order is produced when ordered specs are generated by a helper function [7fa0b6b]
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps github.com/onsi/ginkgo/v2 from 2.9.4 to 2.11.0.
Release notes
Sourced from github.com/onsi/ginkgo/v2's releases.
... (truncated)
Changelog
Sourced from github.com/onsi/ginkgo/v2's changelog.
... (truncated)
Commits
5c32b2a
v2.11.0d6bba86
Programmatic focus is no longer overwrriten by CLI filters4a70a38
Bump github.com/onsi/gomega from 1.27.7 to 1.27.8 (#1218)97eda4d
Bump golang.org/x/sys from 0.8.0 to 0.9.0 (#1219)edf2c70
v2.10.0a782a77
feat(ginkgo/generators): add --tags flag (#1216)548d78e
Fix broken link of MIGRATING_TO_V2.md (#1217)2b76a5e
Bump golang.org/x/tools from 0.9.1 to 0.9.3 (#1215)913e9e5
v2.9.707fc3a0
fix race when multiple defercleanups are called in goroutinesYou can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)