2013年9月10日火曜日

Google Test 1.7.0 RC がリリースされました

(公開されてから少し経ちましたが…)
Google Test の version 1.7.0 release candidate がリリースされました。
約2年ぶりの更新になります。

変更履歴はこちら。
Changes for 1.7.0:

* New feature: death tests are supported on OpenBSD and in iOS
  simulator now.
* New feature: Test::RecordProperty() can now be used outside of the
  lifespan of a test method, in which case it will be attributed to
  the current test case or the test program in the XML report.
* New feature (potentially breaking): --gtest_list_tests now prints
  the type parameters and value parameters for each test.
* Improvement: char pointers and char arrays are now escaped properly
  in failure messages.
* Improvement: failure summary in XML reports now includes file and
  line information.
* Improvement: the <testsuites> XML element now has a timestamp attribute.
* Improvement: When --gtest_filter is specified, XML report now doesn't
  contain information about tests that are filtered out.
* Fixed the bug where long --gtest_filter flag values are truncated in
  death tests.
* Potentially breaking change: RUN_ALL_TESTS() is now implemented as a
  function instead of a macro in order to work better with Clang.
* Compatibility fixes with C++ 11 and various platforms.
* Bug/warning fixes.
今回の変更点をざっと見ていきたいと思います。

New feature: death tests are supported on OpenBSD and in iOS simulator now.
DEATHテストが OpenBSD と iOS シミュレータでも使えるようになった。

New feature: Test::RecordProperty() can now be used outside of the lifespan of a test method, in which case it will be attributed to the current test case or the test program in the XML report
RecordProperty がテスト期間以外でも呼べるようになります。
例えば、SetUpTestCase で呼ぶと XML の <testsuite> に保存されます。

New feature (potentially breaking): --gtest_list_tests now prints the type parameters and value parameters for each test.
--gtest_list_tests で表示されるテストリストにパラメータの型や値を表示するようになりました。

v1.6.0 の場合

v1.7.0 の場合

Improvement: char pointers and char arrays are now escaped properly in failure messages.
char* や char[] のメッセージ出力が改善されました。

Improvement: failure summary in XML reports now includes file and line information.
XML の失敗メッセージにファイルと行数を含むようになりました。

Improvement: the <testsuites> XML element now has a timestamp attribute.
XML の testsuites ノードに timestamp 属性を書き込むようになりました。

Improvement: When --gtest_filter is specified, XML report now doesn't contain information about tests that are filtered out.
--gtest_filter で除外されたテストは XML に出力しないようになりました。

Fixed the bug where long --gtest_filter flag values are truncated in death tests.
--gtest_filter の文字列が長い場合に、DEATHテストに送られる文字列が切り捨てられる不具合が修正されました。

Potentially breaking change: RUN_ALL_TESTS() is now implemented as a function instead of a macro in order to work better with Clang.
RUN_ALL_TESTS がマクロから関数になりました。

Compatibility fixes with C++ 11 and various platforms.
C++11 やその他のプラットフォームへの対応が入りました。

全くもって説明なっていませんね・・・すみません。。。

おおまかにいうと
「様々なプラットフォームへの対応と XML 出力が便利になりました」って感じでしょうか。
バグ修正や細かいところで使いやすくなっているので、
とりあえず 1.7.0 RC 使って正式版に備えておくといいかもしれません。



0 件のコメント:

コメントを投稿