JavaでJUnitなどを利用してテストコードを書く時に便利なヘルパーライブラリです。
現在のバージョンは0.4です。 詳細はバージョン情報を参照してください。
Apache License Version 2.0です。
モジュール名 | 概要 |
---|---|
cmtest-core | JUnitを使ったテストを書くためのモジュールです。 |
cmtest-db | DbUnitを使ったデータベーステストを書くためのモジュールです。 |
cmtest-baseunits | BaseUnits Libraryを使ったテストを書くためのモジュールです。 |
cmtest-examples | テストコードのサンプルです。 |
Mavenリポジトリに公開しています。 Mavenを使っているならば、pom.xmlに追加してください。
<repositories>
<repository>
<id>cm.repos</id>
<name>classmethod repository release</name>
<url>http://public-maven.classmethod.info/release</url>
</repository>
<repository>
<id>cm.repos.snapshot</id>
<name>classmethod repository snapshot</name>
<url>http://public-maven.classmethod.info/snapshot</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>jp.classmethod.testing</groupId>
<artifactId>cmtest-core</artifactId>
<version>0.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>jp.classmethod.testing</groupId>
<artifactId>cmtest-db</artifactId>
<version>0.4</version>
<scope>test</scope>
</dependency>
</dependencies>
※他のモジュールが必要な場合は適宜追加してください。
Gradleを利用しているならば、build.gradleに追加します。
repositories {
mavenCentral()
maven { url 'http://public-maven.classmethod.info/release' }
maven { url 'http://public-maven.classmethod.info/snapshot' }
}
dependencies {
testCompile 'jp.classmethod.testing:cmtest-core:0.4'
testCompile 'jp.classmethod.testing:cmtest-db:0.4'
}
※他のモジュールが必要な場合は適宜追加してください。
Java 1.7以上が必要です。
- JUnit 4.11+
- JUnit 4.11+
- BaseUnits Library 2.11+
各モジュールのREADME.mdを参照してください。