Version 0.11.0
Integrity v0.11.0 comes with the following major changes from its predecessor, 0.10.0:
- For simple single-result tests, the result is now displayed in detail on the HTML result page when the tests' box is opened. This also includes a formatted display in case of formatted result strings.
- Integrity now supports referencing Java constant values ("public static final") in test scripts via the new '<sample.package.SampleClass#SAMPLE_CONSTANT>' language construct.
- Description texts of fixture methods can now contain "conditional text blocks" which are only used if a certain property has been provided ('{propertyName?some text}') - or not: ('{^propertyName?some text}').
- Fixtures may implement the new ExtendedResultFixture interface, which allows them to provide additional data after each fixture call (= each test/call/tabletest). This data can be any number of textual data, images or even free-form HTML snippets (be careful with these though!). All of these are automatically included in the result document - in both XML and HTML forms - associated with the appropriate fixture call.
- Nested Objects may now be "typed" inside test scripts! This is an alternative to the long-existing possibility to have Integrity create Java Bean class instances by specifying the target type as the parameters' type in fixture methods. With this new option, you can now specify a more generic type for your parameter, like java.lang.Object, and have the test author specify the actual bean class to instantiate right in front of the nested object, like this:test checkSimpleBeanUntyped bean:
<de.gebit.integrity.tests.fixtures.basic.beans.SimpleTestBean> {
firstParameter: "string"
secondParameter: 100
thirdParameter: {
innerParameter: 1.99
}
} - Timestamps (with millisecond precision) are now included in test result XML and HTML files for every single test/call and suite invocation. Open the details of the test/call element on the HTML result page to see them.
- There is finally an outline displayed in the "Outline" window of Eclipse that is of practical use! Thanks go to tilois for contributing this feature.