flagSet.BoolVar(&(GinkgoConfig.SkipMeasurements),prefix+"skipMeasurements",false,"If set, ginkgo will skip any measurement specs.")
flagSet.BoolVar(&(GinkgoConfig.SkipMeasurements),prefix+"skipMeasurements",false,"If set, ginkgo will skip any measurement specs.")
flagSet.BoolVar(&(GinkgoConfig.FailOnPending),prefix+"failOnPending",false,"If set, ginkgo will mark the test suite as failed if any specs are pending.")
flagSet.BoolVar(&(GinkgoConfig.FailOnPending),prefix+"failOnPending",false,"If set, ginkgo will mark the test suite as failed if any specs are pending.")
flagSet.BoolVar(&(GinkgoConfig.FailFast),prefix+"failFast",false,"If set, ginkgo will stop running a test suite after a failure occurs.")
flagSet.BoolVar(&(GinkgoConfig.FailFast),prefix+"failFast",false,"If set, ginkgo will stop running a test suite after a failure occurs.")
flagSet.BoolVar(&(GinkgoConfig.DryRun),prefix+"dryRun",false,"If set, ginkgo will walk the test hierarchy without actually running anything. Best paired with -v.")
flagSet.BoolVar(&(GinkgoConfig.DryRun),prefix+"dryRun",false,"If set, ginkgo will walk the test hierarchy without actually running anything. Best paired with -v.")
flagSet.StringVar(&(GinkgoConfig.FocusString),prefix+"focus","","If set, ginkgo will only run specs that match this regular expression.")
flagSet.StringVar(&(GinkgoConfig.FocusString),prefix+"focus","","If set, ginkgo will only run specs that match this regular expression.")
flagSet.StringVar(&(GinkgoConfig.SkipString),prefix+"skip","","If set, ginkgo will only run specs that do not match this regular expression.")
flagSet.StringVar(&(GinkgoConfig.SkipString),prefix+"skip","","If set, ginkgo will only run specs that do not match this regular expression.")
flagSet.BoolVar(&(GinkgoConfig.RegexScansFilePath),prefix+"regexScansFilePath",false,"If set, ginkgo regex matching also will look at the file path (code location).")
flagSet.BoolVar(&(GinkgoConfig.EmitSpecProgress),prefix+"progress",false,"If set, ginkgo will emit progress information as each spec runs to the GinkgoWriter.")
flagSet.BoolVar(&(GinkgoConfig.EmitSpecProgress),prefix+"progress",false,"If set, ginkgo will emit progress information as each spec runs to the GinkgoWriter.")
- Added `Succeed` which allows one to write `Ω(MyFunction()).Should(Succeed())`.
- Added `Succeed` which allows one to write `Ω(MyFunction()).Should(Succeed())`.
- Improved `ghttp`'s behavior around failing assertions and panics:
- If a registered handler makes a failing assertion `ghttp` will return `500`.
- If a registered handler panics, `ghttp` will return `500`*and* fail the test. This is new behavior that may cause existing code to break. This code is almost certainly incorrect and creating a false positive.
-`ghttp` servers can take an `io.Writer`. `ghttp` will write a line to the writer when each request arrives.
- Added `WithTransform` matcher to allow munging input data before feeding into the relevant matcher
- Added boolean `And`, `Or`, and `Not` matchers to allow creating composite matchers
Bug Fixes:
- gexec: `session.Wait` now uses `EventuallyWithOffset` to get the right line number in the failure.
-`ContainElement` no longer bails if a passed-in matcher errors.
//Note that Go's type system does not allow you to write this as ConsistOf([]string{"FooBar", "Foo"}...) as []string and []interface{} are different types - hence the need for this special rule.
//Note that Go's type system does not allow you to write this as ConsistOf([]string{"FooBar", "Foo"}...) as []string and []interface{} are different types - hence the need for this special rule.
returnfalse,fmt.Errorf("Refusing to compare <nil> to <nil>.")
returnfalse,fmt.Errorf("Refusing to compare <nil> to <nil>.\nBe explicit and use BeNil() instead. This is to avoid mistakes where both sides of an assertion are erroneously uninitialized.")
returnfalse,fmt.Errorf("Refusing to compare <nil> to <nil>.\nBe explicit and use BeNil() instead. This is to avoid mistakes where both sides of an assertion are erroneously uninitialized.")
returnfalse,fmt.Errorf("Refusing to compare <nil> to <nil>.")
returnfalse,fmt.Errorf("Refusing to compare <nil> to <nil>.\nBe explicit and use BeNil() instead. This is to avoid mistakes where both sides of an assertion are erroneously uninitialized.")