gherkin_unit_test 0.0.4
gherkin_unit_test: ^0.0.4 copied to clipboard
A gherkin unit test framework based on flutter's official flutter_test package.
0.0.4 #
- ✨ New: Added the option to add a
systemUnderTestfrom higher up the tree (e.g.UnitFeatureandUnitTest). - ⚠️ Breaking: Added the
UnitMocksobject that gets passed around from initialising yoursystemUnderTestuntil your lastUnitStep. - ⚠️ Breaking: The
systemUnderTestwill now persist through allUnitSteps andUnitExamples of aUnitScenario. - ⚠️ Breaking: The
systemUnderTestmay now also be defined inside aUnitFeatureorUnitTestand will cascade down to aUnitScenario. If a child has a newsystemUnderTestdefined it will use that instead. - ⚠️ Breaking: The
systemUnderTestmethod of our main classes (UnitTest,UnitFeatureorUnitScenario) will always be called before any other method inside that class. - ⚠️ Breaking: All set up methods (
setUpEach,setUpOnce,tearDownEachandtearDownOnce) inside all parent classes (UnitTest,UnitFeatureandUnitScenario) will now have access to the newUnitMocksobject, as well as anysystemUnderTestyou might have initialised in one of those classes.
0.0.3 #
- ⚠️ Breaking: Replaces the
resultparameter (nowbox) of theUnitStepCallbackwith an instance ofUnitBox. This will allow you to save multiple persistent values throughout a series of steps inside theboxinstead of passing around a maximum of one single value as aresultthrough multiple steps. - ⚠️ Breaking: Removed the recently introduces extension methods for cast a result since
resulthas now been replaces with the newUnitBoxwhich has this functionality built in.
0.0.2+1 #
- Added
asTypeandasNullableTypeextension methods for easier usage of anUnitStep's result.
0.0.2 #
- ⚠️ Breaking: Added generic argument to scenario for easier example usage.
0.0.1+7 #
- Remove
requiredfrom theUnitExample.valuesfield.
0.0.1+6 #
- Updated info icon.
0.0.1+5 #
- Update required descriptions to nullable for more flexibility.
0.0.1+4 #
- 🐛️ Bugfix: Fixed logging where logging would only appear if examples were not empty.
0.0.1+1 #
- ✨ New: Added steps
WhenThen,GivenWhenThenandShould. - Added example project with 100% test coverage tests created using this package.