テスト フィクスチャ ファイルの例

以下に示すのは、2 つのテスト ケースを含むテスト フィクスチャ ファイルからの抜粋です。1 つ (MFUT_FailingTest) はテスト実行を失敗させるものとして知られているため、テスト実行からは削除 (スキップ) しました。

[global]
# By not supplying a platform specific extension (.dll or .so)
# with the fixture-filename, this can be used cross-platform
fixture-filename=MessageOverflow
process=separate
isolate=true
report=nojunit
report=printfile
reportfile=MessageOverflow-report.txt
ignore-return-code=false
summary=true
outdir=.

[MFUT_MyShortRunningTest]
# The test fails if not completed within 10 seconds
# You can also specify ms (milliseconds)
timeout=10s
description=Short running test that should complete in < 10 seconds
skipped=false
# Mr Smith can you fix this ASAP..
[MFUT_FailingTest]
timeout=60s
description=This failing test needs attention... fix me and re-enable
# Skip a test using:
skipped=true