テストグループを実行すると作成されるファイルは、次のとおりです。
テストグループに含まれるテストとその実行結果の一覧をあらわします。
テストの実行結果を表します。テストグループ実行時に表示される内容です。
ここではテストグループ名はtestなので、TEST.logが次の内容で作成されます。
01_scalene/ 有効な不等辺三角形をあらわすテスト・ケース 01_scalene: Test Success 2011-01-10 12:14:23 Detail in /home/foo/triangle/test/01_scalene/detail.log 12_notint/ 整数でない値をもつテスト・ケース 12_notint: Test Success 2011-01-10 12:14:23 Detail in /home/foo/triangle/test/12_notint/detail.log 03_isosceles/ 有効な二等辺三角形をあらわすテスト・ケース 03_isosceles: Test Success 2011-01-10 12:14:23 Detail in /home/foo/triangle/test/03_isosceles/detail.log 02_equilateral/ 有効な正三角形をあらわすテスト・ケース 02_equilateral: Test Success 2011-01-10 12:14:23 Detail in /home/foo/triangle/test/02_equilateral/detail.log 05_zero/ 1つの辺がゼロの値をもつテスト・ケース 05_zero: Test Success 2011-01-10 12:14:23 Detail in /home/foo/triangle/test/05_zero/detail.log 13_argcnt/ 数値の個数が間違っていることをためすテスト・ケース 13_argcnt: Test Success 2011-01-10 12:14:23 Detail in /home/foo/triangle/test/13_argcnt/detail.log 10_lesses/ ゼロより大きな3つの整数のうち、2つの数の和がそれ以外の1つの数より小さくなることにおいて、3種類の順列すべてを考慮することのできるテストケース 10_lesses: Test Success 2011-01-10 12:14:23 Detail in /home/foo/triangle/test/10_lesses/detail.log 07_line/ ゼロより大きい3つの整数をもち、そのうち2つの和がそれ以外の1つと等しいようなテスト・ケース 07_line: Test Success 2011-01-10 12:14:23 Detail in /home/foo/triangle/test/07_line/detail.log 06_minus/ 1つの辺が負の値をしめすテスト・ケース 06_minus: Test Success 2011-01-10 12:14:23 Detail in /home/foo/triangle/test/06_minus/detail.log 11_zeroall/ すべての辺がゼロであるテスト・ケース 11_zeroall: Test Success 2011-01-10 12:14:24 Detail in /home/foo/triangle/test/11_zeroall/detail.log 08_lines/ 1辺の長さが他の2辺の長さの和に等しいことを3種類の順列のすべてに対してためすことのできるテスト・ケース 08_lines: Test Success 2011-01-10 12:14:24 Detail in /home/foo/triangle/test/08_lines/detail.log 09_less/ ゼロより大きな3つの整数のうち、2つの数の和がそれ以外の1つの数より小さくなるテストケース 09_less: Test Success 2011-01-10 12:14:24 Detail in /home/foo/triangle/test/09_less/detail.log 04_isosceles_c/ 有効な二等辺三角形で2つの等辺を含む3種類の組合せすべてをためすことができる3つのテストケース 04_isosceles_c: Test Success 2011-01-10 12:14:24 Detail in /home/foo/triangle/test/04_isosceles_c/detail.log
テストをまとめて実行した場合も、個別のテストを実行した場合と同様に、テストディレクトリーにテストログが出力されます。特定のテスト結果を詳細に検討する場合は、そのテストのテストディレクトリーを開いてテストログファイルの確認をします。
バグを含む三角形判定プログラムを準備してテストグループを実行した場合、TEST.logは次のように表示されます。01_scaleneのほか、11_zeroのテストで失敗しています。すべての辺がゼロである場合に表示が正しくないバグがあることがわかります。
01_scalene/ 有効な不等辺三角形をあらわすテスト・ケース 01_scalene: Test Failure 2011-01-10 21:45:52 Detail in /home/foo/triangle/test/01_scalene/detail.log 12_notint/ 整数でない値をもつテスト・ケース 12_notint: Test Success 2011-01-10 21:45:52 Detail in /home/foo/triangle/test/12_notint/detail.log 03_isosceles/ 有効な二等辺三角形をあらわすテスト・ケース 03_isosceles: Test Success 2011-01-10 21:45:52 Detail in /home/foo/triangle/test/03_isosceles/detail.log 02_equilateral/ 有効な正三角形をあらわすテスト・ケース 02_equilateral: Test Success 2011-01-10 21:45:53 Detail in /home/foo/triangle/test/02_equilateral/detail.log 05_zero/ 1つの辺がゼロの値をもつテスト・ケース 05_zero: Test Failure 2011-01-10 21:45:53 Detail in /home/foo/triangle/test/05_zero/detail.log 13_argcnt/ 数値の個数が間違っていることをためすテスト・ケース 13_argcnt: Test Success 2011-01-10 21:45:53 Detail in /home/foo/triangle/test/13_argcnt/detail.log 10_lesses/ ゼロより大きな3つの整数のうち、2つの数の和がそれ以外の1つの数より小さくなることにおいて、3種類の順列すべてを考慮することのできるテストケース 10_lesses: Test Success 2011-01-10 21:45:53 Detail in /home/foo/triangle/test/10_lesses/detail.log 07_line/ ゼロより大きい3つの整数をもち、そのうち2つの和がそれ以外の1つと等しいようなテスト・ケース 07_line: Test Success 2011-01-10 21:45:53 Detail in /home/foo/triangle/test/07_line/detail.log 06_minus/ 1つの辺が負の値をしめすテスト・ケース 06_minus: Test Success 2011-01-10 21:45:53 Detail in /home/foo/triangle/test/06_minus/detail.log 11_zeroall/ すべての辺がゼロであるテスト・ケース 11_zeroall: Test Failure 2011-01-10 21:45:53 Detail in /home/foo/triangle/test/11_zeroall/detail.log 08_lines/ 1辺の長さが他の2辺の長さの和に等しいことを3種類の順列のすべてに対してためすことのできるテスト・ケース 08_lines: Test Success 2011-01-10 21:45:53 Detail in /home/foo/triangle/test/08_lines/detail.log 09_less/ ゼロより大きな3つの整数のうち、2つの数の和がそれ以外の1つの数より小さくなるテストケース 09_less: Test Success 2011-01-10 21:45:53 Detail in /home/foo/triangle/test/09_less/detail.log 04_isosceles_c/ 有効な二等辺三角形で2つの等辺を含む3種類の組合せすべてをためすことができる3つのテストケース 04_isosceles_c: Test Success 2011-01-10 21:45:53 Detail in /home/foo/triangle/test/04_isosceles_c/detail.log