...
1 package integration_test
2
3 import (
4 . "github.com/onsi/ginkgo/v2"
5 . "github.com/onsi/gomega"
6 "github.com/onsi/gomega/gexec"
7 )
8
9 var _ = Describe("Deprecations", func() {
10 BeforeEach(func() {
11 fm.MountFixture("deprecated_features")
12 })
13
14 It("runs, succeeds, and emits deprecation warnings", func() {
15 session := startGinkgo(fm.PathTo("deprecated_features"), "--randomizeAllSpecs", "--stream")
16 Eventually(session).Should(gexec.Exit(0))
17 contents := string(session.Out.Contents()) + string(session.Err.Contents())
18
19 Ω(contents).Should(ContainSubstring("You are passing a Done channel to a test node to test asynchronous behavior."))
20 Ω(contents).Should(ContainSubstring("Measure is deprecated and has been removed from Ginkgo V2."))
21 Ω(contents).Should(ContainSubstring("--stream is deprecated"))
22 Ω(contents).Should(ContainSubstring("--randomizeAllSpecs is deprecated"))
23 })
24 })
25
View as plain text