본문으로 건너뛰기
버전: v1.1.x

기능

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

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

Kotest 플러그인 추가 후 반드시 Kotest를 사용해야 하는 것은 아니며, Junit을 사용할 수 있습니다.

의존성

fixture-monkey-kotlin

Gradle

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

Maven

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

플러그인

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