Skip to content

Javaのデベロッパーテスト支援用ライブラリ

License

Notifications You must be signed in to change notification settings

jitsuhira/cmtest

Repository files navigation

cmtest

これはなに?

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以上が必要です。

cmtest-core

cmtest-db

cmtest-baseunits

使い方

各モジュールのREADME.mdを参照してください。

About

Javaのデベロッパーテスト支援用ライブラリ

Resources

License

Stars

Watchers

Forks

Packages

No packages published