Elmyr v1.2.0 Release Notes
Release Date: 2020-09-03 // over 4 years ago-
repositories { maven { url "https://jitpack.io" } } dependencies { testCompile("com.github.xgouchet.Elmyr:core:1.1.0") // Artifacts to integrate Elmyr with your favorite Test Framework testCompile("com.github.xgouchet.Elmyr:junit4:1.1.0") testCompile("com.github.xgouchet.Elmyr:junit5:1.1.0") testCompile("com.github.xgouchet.Elmyr:spek:1.1.0") // add support for JVM classes forgeries (Date, Locale, โฆ) testCompile("com.github.xgouchet.Elmyr:jvm:1.1.0") }
๐ Changelog
core
- ๐ Allow using the
@StringForgery
annotation to forge Strings based on Regex - ๐ Allow setting a size in
@StringForgery
annotation
inject
- ๐ Allow injecting collections of primitives with
@BoolForgery
,@IntForgery
,@LongForgery
,@FloatForgery
,@DoubleForgery
, as well as@StringForgery
andRegexForgery
- ๐ Allow advanced forgery injections using
@AdvancedForgery
and@MapForgery
junit5
- ๐ Allow injecting collections of primitives with
@BoolForgery
,@IntForgery
,@LongForgery
,@FloatForgery
,@DoubleForgery
, as well as@StringForgery
andRegexForgery
- ๐ Allow advanced forgery injections using
@AdvancedForgery
and@MapForgery
- ๐ Allow using the
Previous changes from v1.1.0
-
repositories { maven { url "https://jitpack.io" } } dependencies { testCompile("com.github.xgouchet.Elmyr:core:1.1.0") // Artifacts to integrate Elmyr with your favorite Test Framework testCompile("com.github.xgouchet.Elmyr:junit4:1.1.0") testCompile("com.github.xgouchet.Elmyr:junit5:1.1.0") testCompile("com.github.xgouchet.Elmyr:spek:1.1.0") // add support for JVM classes forgeries (Date, Locale, โฆ) testCompile("com.github.xgouchet.Elmyr:jvm:1.1.0") }
๐ Changelog
core
- ๐ Fix float and double forgeries (they sometimes returned values out of the requested range)
inject
- โ Add default String type (i.e.:
ALPHABETICAL
) to the@StringForgery
annotation
spek
- โ
Implement a
spekForge
helper method to add reproducibility in Spek tests