Update dependency pl.pragmatists:JUnitParams to v1.1.1 #69
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.0.4
->1.1.1
Release Notes
Pragmatists/JUnitParams (pl.pragmatists:JUnitParams)
v1.1.1
Regexp bugfix
New version works well for Instrumented Unit Test for Android 19 and below.
Thanks mattmook and aaalaniz for contribution.
v1.1.0
[Breaking change] Enhance ParametersProvider with FrameworkMethod
ParametersProvider#initialize
method was enhanced with new parameter - FrameworkMethod object. It gives access to all information connected with method in testing e.g. annotations.How to migrate? Add new parameter to
ParametersProvider#initialize
method if you are using any custom parameters provider.Thanks bohrqiu for contribution.
Possibility to link parameters to test case by
@Named
annotationIn some cases we can don't want to link parameters to test case by method name or putting everything into the test case annotation. We introduce possibility to define custom name for the connection by using
@NamedParameters
annotation.Thanks tobyt42 for idea and contribution.
Speedups
New version is noticeably faster for big as well as small set of parameters.
Thanks for ukcrpb6 for contribution.
v1.0.6
Change default testcase naming template
Due to problems with test results presentation e.g. in Jenkins where test cases
will be not ordered by execution but by naming, default test case naming template was changed to:
from
Thanks to ealgell for contribution.
v1.0.5
Deprecated $ method
Utility method
$
was deprecated. It was causing too much problems and we decided not to support it any more. If you wish to keep using it, implement it in your own codebase.Automatic class name to class object conversion
Thanks to adammichalik for contribution
Support custom annotations for parameter conversion
You can create your own annotations for parameter conversion. Just annotate it with
@Param
and pass it a reference toConverter
implementation.Example:
Usage example:
Thanks to bbobcik for inspiration
CustomParameters
You can create custom annotations for parameter providers.
@FileParameters
have been refactored to use this mechanism and should serve as a perfect usage example.@CombinedParameters
Thanks to piekarskim The issue #1 is fixed.
Using this annotation will result in creating a n-fold cartesian product of parameter values effectively testing each possible combination.
Since an example is worth a thousand words:
Such annotated test method:
Will be called 4 times with parameters:
Bug fixes and improvements
Thanks to the rest of contributors for lots of bug fixes and improvements:
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.