기능

Fixture Monkey에서 제공하는 Kotest 플러그인을 사용하면 더욱 향상된 테스트를 경험할 수 있습니다.

  • 기본 타입의 랜덤 값을 생성하는 기본 생성기를 Jqwik에서 Kotest의 프로퍼티 생성기(Arb)로 대체합니다. 빈(bean) 검증 어노테이션도 사용할 수 있습니다.
  • forAll, checkAll을 포함한 Kotest의 property-based 테스트를 지원합니다.

의존성

fixture-monkey-kotlin

Gradle

testImplementation("com.navercorp.fixturemonkey:fixture-monkey-kotest:1.0.23")

Maven

<dependency>
  <groupId>com.navercorp.fixturemonkey</groupId>
  <artifactId>fixture-monkey-kotest</artifactId>
  <version>1.0.23</version>
  <scope>test</scope>
</dependency>

플러그인

val fixtureMonkey = FixtureMonkey.builder()
    .plugin(KotestPlugin())
    .plugin(KotlinPlugin())
    .build()