Skip to content

Releases: xgouchet/Elmyr

1.4.0

27 Sep 14:33
c5842fe
Compare
Choose a tag to compare

core

  • Add a reflexive factory to automatically forge data classes

1.3.4

05 May 17:10
db327a6
Compare
Choose a tag to compare
Upgrade publishing script

1.3.3

05 May 13:00
9ad35c1
Compare
Choose a tag to compare

All

  • Fix publication process

1.3.2

05 May 12:26
9ad35c1
Compare
Choose a tag to compare

core

  • Add the Forge.shuffle(String): String and Forge.shuffle(Array<T>): Array<T> methods

semantics

  • Add the semantics library providing some human readable fake Strings generation (names, lipsum, …)

1.3.1

07 Sep 07:02
5c8ede4
Compare
Choose a tag to compare

Changelog

core

  • Fix some invalid regex forgeries (e.g.: "[^a-z]+" was not handled properly)

junit5

  • Fix an error when a ForgeConfiguration was missing a ForgeConfigurator

1.3.0

14 Apr 12:46
c99eb48
Compare
Choose a tag to compare
 repositories {
        maven { url "https://jitpack.io" }
    }
    dependencies {
        testCompile("com.github.xgouchet.Elmyr:core:1.3.0")

        // Artifacts to integrate Elmyr with your favorite Test Framework
        testCompile("com.github.xgouchet.Elmyr:junit4:1.3.0")
        testCompile("com.github.xgouchet.Elmyr:junit5:1.3.0")
        testCompile("com.github.xgouchet.Elmyr:spek:1.3.0")

        // add support for JVM classes forgeries (Date, Locale, …)
        testCompile("com.github.xgouchet.Elmyr:jvm:1.3.0")
    }

Changelog

inject

  • Add a listener to the ForgeryInjector to be notified when an injection happens
  • Allow advanced forgery injections using @PairForgery

junit4

  • Make the error message more verbose

junit5

  • Make the error message more verbose
  • Allow advanced forgery injections using @PairForgery
  • Add the forge to the global extension context store (use the ForgeExtension.getForge(ExtensionContext) method to retrieve it)

1.2.0

03 Sep 12:40
Compare
Choose a tag to compare
 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

1.1.0

24 Aug 11:30
Compare
Choose a tag to compare
 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

1.0.0

17 Feb 09:56
Compare
Choose a tag to compare
    repositories {
        maven { url "https://jitpack.io" }
    }
    dependencies {
        testCompile("com.github.xgouchet.Elmyr:core:1.0.0")
        testCompile("com.github.xgouchet.Elmyr:junit4:1.0.0")
        testCompile("com.github.xgouchet.Elmyr:junit5:1.0.0")
        testCompile("com.github.xgouchet.Elmyr:jvm:1.0.0")
    }```

1.0.0-beta3

17 Feb 09:28
Compare
Choose a tag to compare
1.0.0-beta3 Pre-release
Pre-release
1.0.0-beta3