Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(hacbs-773): Solve Ginko v2 deprecation warnings
When running tests in verbose mode `go test -v ...` you would see a warning. ``` You're using deprecated Ginkgo functionality: ============================================= Ginkgo 2.0 is under active development and will introduce several new features, improvements, and a small handful of breaking changes. A release candidate for 2.0 is now available and 2.0 should GA in Fall 2021. Please give the RC a try and send us feedback! - To learn more, view the migration guide at https://github.com/onsi/ginkgo/blob/ver2/docs/MIGRATING_TO_V2.md - For instructions on using the Release Candidate visit https://github.com/onsi/ginkgo/blob/ver2/docs/MIGRATING_TO_V2.md#using-the-beta - To comment, chime in at onsi/ginkgo#711 You are using a custom reporter. Support for custom reporters will likely be removed in V2. Most users were using them to generate junit or teamcity reports and this functionality will be merged into the core reporter. In addition, Ginkgo 2.0 will support emitting a JSON-formatted report that users can then manipulate to generate custom reports. If this change will be impactful to you please leave a comment on onsi/ginkgo#711 Learn more at: https://github.com/onsi/ginkgo/blob/ver2/docs/MIGRATING_TO_V2.md#removed-custom-reporters To silence deprecations that can be silenced set the following environment variable: ACK_GINKGO_DEPRECATIONS=1.16.5 ``` We have two places that use v1 `RunSpecsWithDefaultAndCustomReporters` These can be replaced with v2 `RunSpecs` See here for details: https://github.com/onsi/ginkgo/blob/ver2/docs/MIGRATING_TO_V2.md#removed-custom-reporters easyfix Signed-off-by: Jon Disnard <[email protected]>
- Loading branch information