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 be guaranteed. 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