JGiven v1.1 Release Notes
-
๐ New features
- The lifecycle method annotations
@BeforeStage
and@AfterStage
have an option to make the associated methods be invoked repeatedly if the stage class is invoked multiple times. Note that the duration of a stage is denoted by the change of the stage class, thus multiple invocations (no matter the form) on the same stage class count as one stage. - The field annotations
@ScenarioState
and@ProvidedScenarioState
can be set to beguaranteed
. This ensures that the stage that is declaring such field must operate on it during execution and after the stage finishes the field is ensured to be initialized. - ๐ JGiven supports now an optional properties file,
jgiven.properties
, which can be used to set some settings for the report generation, such as:enabled
,directory
,text.color
. - โ Added an internal module for injecting automated performance analysis for test methods.
๐ Fixed Issues
- Refurbished the jgiven-scala example project #619 (thanks to seblm)
- โก๏ธ Updated most dependencies in the project
- ๐จ Enabled printing of nested stage #366 (thanks to laurinvesely)
- ๐ Fixed SVG thumbnail creation in HTML5 report #706
Backwards Incompatible Changes
- โ JGiven-TestNG now expects you to provide a version of TestNG on the runtime classpath
- JGiven-Spring does not export its dependency on JGiven-Core anymore, because JGiven-Spring should be used with of the test packages JGiven-JUnit, JGiven-Spock, JGiven-JUnit5, JGiven-TestNG, where that dependency is exported
- The lifecycle method annotations