gherkin_unit_test 0.0.5 gherkin_unit_test: ^0.0.5 copied to clipboard
A gherkin unit test framework based on flutter's official flutter_test package.
0.0.5 #
- ✨ New: Added new
setUpMocks
methods toUnitTest
,UnitFeature
,UnitScenario
. - ⚠️ Breaking: Removed the optional
mocks
parameter from theUnitTest.test
method, because redundant.
0.0.4+8 #
- Update example project
0.0.4+7 #
- Improved example toString again
0.0.4+6 #
- Improved example toString
0.0.4+5 #
- Removed unused UnitExample.isLastExample
0.0.4+4 #
- Removed nullability from the
systemUnderTest
inside aUnitScenario
.
0.0.4+3 #
- Update readme.
0.0.4+2 #
- Update readme.
0.0.4+1 #
- Updated the
UnitScenario
'sTestGroupFunction
's with the properSUT
generic.
0.0.4 #
- ✨ New: Added the option to add a
systemUnderTest
from higher up the tree (e.g.UnitFeature
andUnitTest
). - ⚠️ Breaking: Added the
UnitMocks
object that gets passed around from initialising yoursystemUnderTest
until your lastUnitStep
to facilitate better mocks integration. - ⚠️ Breaking: The
systemUnderTest
will now persist through allUnitStep
s andUnitExample
s of aUnitScenario
. - ⚠️ Breaking: The
systemUnderTest
may now also be defined inside aUnitFeature
orUnitTest
and will cascade down to aUnitScenario
. If a child has a newsystemUnderTest
defined it will use that instead. - ⚠️ Breaking: The
systemUnderTest
method of our main classes (UnitTest
,UnitFeature
orUnitScenario
) will always be called before any other method inside that class. - ⚠️ Breaking: All set up methods (
setUpEach
,setUpOnce
,tearDownEach
andtearDownOnce
) inside all parent classes (UnitTest
,UnitFeature
andUnitScenario
) will now have access to the newUnitMocks
object, as well as anysystemUnderTest
you might have initialised in one of those classes.
0.0.3 #
- ⚠️ Breaking: Replaces the
result
parameter (nowbox
) of theUnitStepCallback
with an instance ofUnitBox
. This will allow you to save multiple persistent values throughout a series of steps inside thebox
instead of passing around a maximum of one single value as aresult
through multiple steps. - ⚠️ Breaking: Removed the recently introduces extension methods for cast a result since
result
has now been replaces with the newUnitBox
which has this functionality built in.
0.0.2+1 #
- Added
asType
andasNullableType
extension 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
required
from theUnitExample.values
field.
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+2 #
- Update test project.
0.0.1+2 #
- Update readme
0.0.1+1 #
- ✨ New: Added steps
WhenThen
,GivenWhenThen
andShould
. - Added example project with 100% test coverage tests created using this package.
0.0.1 #
- Update readme.
0.0.1 #
- Initial release.