Changelog History
Page 1
-
v1.2.2 Changes
๐ ##Fixed issues
- ๐ Fixed issue where tags listed all of their ancestors as direct parents #868 (thanks to jadhindieh for reporting)
-
v1.2.1 Changes
New features
- JGiven-JUnit5 now reports its test outcomes back to JUnit5 before the
@After
methods, not after them. This should make it easier to run extensions like ReportPortal alongside JUnit5. ๐ ##Fixed issues - The
@Tag
annotation configuration can now be set differently from the JGiven defaults. #806 (thanks to sebphil) - JGiven no longer prints errors while scanning annotations that are not tags. #821
- Fixed issue where parents of tags where not declared in the tag list, making the JGiven app unusable. #868 (thanks to jadhindieh for reporting)
- JGiven now openly reports incompatability when running TestNG in multi-threading mode. #829
- JGiven now openly reports incompatability to the JUnit5 per-class lifecyle#829
- Fixed issue where aggregation of reports would lead to an exception when running in parallel with JUnit5.#829
- The JGiven maven plugin did not declare itsself as thread-safe, even though it conceptually is. #829 (thanks to Hatzen for pointing it out and fixing it.) ##Backward incompatible changes
- Removed explicit support for PowerMock in JGiven-JUnit4 package, because the powermock project appears to be abandoned.
- JGiven-JUnit5 now reports its test outcomes back to JUnit5 before the
-
v1.1 Changes
๐ 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
-
v1.0.0 Changes
โก๏ธ This is the first major version update of JGiven. It does introduce new features, as well as backwards-incompatible changes, ๐ due to the removal of all deprecated classes and methods and the drop of Java 7 support.
๐ New Features
- โ Additon of
@FillerWords
to prepend scenario stage methods. #472 (thanks to richard-stowe) - ๐ Java 13 is supported now #447 (thanks to jsalinaspolo)
- The
CurrentStep
interface has a new methodsetName
to change the name of a step programmatically #386 - โก๏ธ Updated the Guava dependency to v27.1-jre #398
- โ Added
DualScenarioTest
#406 (thanks to jangalinksi) - โฌ๏ธ Upgraded Gradle Plugin to support Gradle 5 and 6 #381 (thanks to jsalinaspolo)
- โ
@Pending
can now be added to the test class to make all scenarios of that class pending #403 - โ Added new option 'jgiven.report.dry-run' to generate a report without really executing the tests #435 (thanks to jsalinaspolo)
- โ Added Portuguese scenario and stage classes #423 (thanks to gandadil)
- โ Added French scenario and stage classes #488 (thanks to ecattez)
Spring 5 with JUnit 5
๐ To better support Spring 5 with JUnit 5 the
jgiven-spring
module has been split up into three modules. You need to adapt your dependencies accordingly. If you are using JUnit 4 use thejgiven-spring-junit4
module. If you are using Spring 5 with JUnit 5 then use thejgiven-spring-junit5
module.Backwards Incompatible Changes
- ๐ Java 7 is not supported anymore
- Calling stage methods annotated with
@DoNotIntercept
or declared withinjava.lang.Object
will not trigger a stage change anymore #385 - The Guava dependency changed to v27.1-jre. This might lead to problems in case your project also depends on Guava
Cleaned up Module Dependencies
๐ Some direct module dependencies have been removed. This means that you might have to add additional ๐ dependencies to your build:
- jgiven-junit has no direct junit dependency anymore and no direct dependency to jgiven-html5-report
โ Removed Deprecated Features
๐ All deprecated methods and classes have been removed. Please adapt your code according to the JavaDoc documentation.
- โ Removed
@NotImplementedYet
annotation. Use@Pending
instead. - โ Removed
@CaseDescription
annotation. Use@CaseAs
instead. - โ Removed
CaseDescriptionProvider
. UseCaseAsProvider
instead. - โ Removed
DefaultCaseDescriptionProvider
. UseDefaultCaseAsProvider
instead. - โ Removed
com.tngtech.jgiven.junit.de.SzenarioTest
. Usecom.tngtech.jgiven.junit.lang.de.SzenarioTest
instead. - โ Removed
ScenarioExecutionRule
. UseJGivenMethodRule
instead. - โ Removed
ScenarioReportRule
. UseJGivenClassRule
instead. - โ Removed
SpringCanWire
๐ Fixed Issues
- ๐ Make it easier to copy the stack trace from an error message #380
- โ
TestEntitiyManager
now initialized correctly #415 (thanks to leimer) - ๐ make tasks in the JGiven-gradle plugin cacheable #450 (thanks to jsalinaspolo)
- โ make sure the spring-junit-5 plugin is actually tested #493 (thanks to catchin)
- โ spring-junit5 tests now initialize spring before JGiven #494 (thanks to catchin)
- โ Additon of
-
v1.0.0-RC7 Changes
November 26, 2020๐ seventh release candidate for JGiven.
Functionally equivalent to RC6
The binaries may be found here: https://search.maven.org/search?q=g:com.tngtech.jgiven%20AND%20v:1.0.0-RC7 -
v1.0.0-RC6 Changes
November 09, 2020๐ฆ the current packages can be found at:
-
v0.18.2 Changes
September 07, 2019๐ Fixed Issues
- ๐ Fixed the
setName
method introduced in v0.18.0 to correctly update the words in the report #386
- ๐ Fixed the
-
v0.18.1 Changes
September 04, 2019โ Exception handling changed for TestNG
โ When using TestNG, exceptions are not longer caught and suppressed until the end of a scenario.
This means that steps following a failed step are no longer shown in the scenario report.
โ This change was needed to ensure that TestNG reports the correct test status in case of an exception.๐ See PR #422 and Issue #312 for details.
๐ Fixed Issues
-
v0.18.0 Changes
August 30, 2019