Changelog History
Page 3
-
v0.13.1 Changes
๐ Bug Fixes
- 0๏ธโฃ Maven Plugin: The default values of the Maven plugin now work again #276
-
v0.13.0 Changes
Backwards Incompatible Changes
In order to fix issue #239, a backwards incompatible change had to be done:
- The
ScenarioBase
class is now abstract, because the methodgetScenario()
was made abstract. Thus, subclasses have to implement thegetScenario()
method. As, in general, you should have inherited either fromScenarioTest
orSimpleScenarioTest
the change should most likely not effect you. If you have directly inherited fromScenarioBase
, have a look at theScenarioTest
class of how to implement thegetScenario()
method.
๐ New Features
- Custom annotations can now also be defined for the
@Table
annotation #235 - In addition to text and images, all kinds of media types can now be used as attachments #228 (thanks to ahus1)
Small Improvements
- Assertion errors shown in the HTML report respect line breaks now. #234
๐ Bug Fixes
- โ TestNG: executing test methods in parallel is now possible. #239
- Correctly handle nested steps in parametrized scenarios. #248
- Correctly report pending status of parametrized scenarios. #200
- โ Spring: added support for executing Spring tests with the Spring JUnit rules instead of the Spring test runner. #250
- The
-
v0.12.1 Changes
๐ Fixed Issue
- ๐ Fixed an issue in the HTML5 report to correctly show the value instead of an unresolved funtion #233
-
v0.12.0 Changes
๐ New Features
- โ Added possibility to use JGiven in JUnit by just using two rules. No deriving from ScenarioTest is necessary anymore, see #232
- ๐ Allow multiple formatter annotations on arguments, e.g., "@Quoted @YesNo", see #204.
- โ Added a new comment() method to provide further information on specific step method invocations, see #50.
- Steps can now have multiple attachments #194.
- ๐ท Tags can now be hidden from the navigation bar in the HTML report by setting the
showInNavigation
attribute tofalse
#211. - โ Added a new CurrentScenario interface similar to CurrentStep.
- ๐ The CurrentScenario interface allows adding tags programmatically, see #172.
- ๐ Allow tag annotations on step methods and step classes.
- ๐ Extended the @As annotation with a provider mechanism, see #189.
๐ฅ Breaking Changes in the JSON model
- Due to the introduction of multiple attachments per step, the JSON model had to be changed in an backwards-incompatible way. Instead of a single field
attachment
that holds a single attachment object, a step has now anattachments
field that holds an array of attachment objects.
๐ Fixed Issues
-
v0.11.4 Changes
๐ Fixed Issues
- Don't show multiple indexed attachments when cases are not shown as tables #207 (thanks to ahus1)
-
v0.11.2 Changes
๐ Fixed Issues
- ๐ Fixed an issue introduced with v0.11.1 that for scenarios with attachments and multiple cases, only the attachment of the first case was shown in the HTML report #191
-
v0.11.1 Changes
๐ New Features
HTML Report size reduction
- The size of the HTML report has been greatly reduced by compressing the scenario data with gzip. This significantly reduces the load time of large reports on slow network connections. #186
๐ Fixed Issues
- ๐ HTML Report: fixed an issue with the search input in the mobile menu that was hidden on mobile devices when the virtual keyboard appeared. #182
- JUnit: throwing an AssumptionViolationException will not lead to a failed scenario anymore. Instead, the scenario will be ignored and will not appear in the report at all. #185
-
v0.11.0 Changes
๐ New Features
Sections
Scenarios can have sections now. This allows you to structure larger scenarios into several parts with a title. PR#181
Example:
section("This is a section title"); given().something(); when().something(); section("This is another section title"); when().something_else(); then().something();
Sections appear in the console output as well as the HTML report.
๐ Changes regarding colors in the console output
The color used in the console output has been changed. It is now less colorful and usable on dark and light backgrounds. Setting the system property
jgiven.report.text.color
totrue
now always enables the color output, even if the output is not a TTY.๐ Fixed Issues
-
v0.10.1 Changes
๐ New Features
Nested Steps
Steps can now have nested steps that are shown in the report. This is done by annotating parent steps with the new
@NestedSteps
annotation. #17, PR#174. Thanks to @albertofaci!โ Additional Table Formatting Options
The
@Table
annotation to format step parameters as tables has been extended with several options to further customize the formatting of the resulting tables. #122Other Features
- HTML Report: case tables have sortable columns #175
- HTML Report: case tables can be grouped by values #168
- ๐ป Exception type is now added to the error message of a failed step #154
๐ Fixed Issues