Elmyr v1.2.0 Release Notes

Release Date: 2020-09-03 // about 1 year 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 and RegexForgery
    • ๐Ÿ‘ Allow advanced forgery injections using @AdvancedForgery and @MapForgery

    junit5

    • ๐Ÿ‘ Allow injecting collections of primitives with @BoolForgery, @IntForgery, @LongForgery, @FloatForgery, @DoubleForgery, as well as @StringForgery and RegexForgery
    • ๐Ÿ‘ Allow advanced forgery injections using @AdvancedForgery and @MapForgery

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