2

xunit プラグインを使用して、jenkins の google cpp テスト ツールで生成された xml 形式のテスト レポートを公開したいと考えています。プラグインの構成中にパターンを指定する必要があります。構成するとこのエラーが発生するため、誰でもこのパターンに何を書くべきか助けてもらえますか

**

[xUnit] [INFO] - [JUnit] - No test report file(s) were found with the pattern 'C:\Users\20040922\.jenkins\workspace\firstreport.xml' relative to 'C:\Users\20040922\.jenkins\jobs\jessy\workspace' for the testing framework 'JUnit'.  Did you enter a pattern relative to the correct directory?  Did you generate the result report(s) for 'JUnit'?
[xUnit] [ERROR] - No test reports found for the metric 'JUnit' with the resolved pattern 'C:\Users\20040922\.jenkins\workspace\firstreport.xml'. Configuration error?.
[xUnit] [INFO] - Setting the build status to FAILURE
[xUnit] [INFO] - Stopping recording.
Build step 'Publish xUnit test result report' changed build result to FAILURE
Finished: FAILURE

**

4

2 に答える 2

4

Java 以外のツールを構成するには、xunit プラグインを使用する必要があります。パターンでは 、現在のジョブのワークスペース フォルダーでファイルを検索する* */*.xml を指定できます。

于 2013-04-15T12:37:53.830 に答える
1

Google テストと JUnit テスト結果レポートを使用しています。

レポートを公開するには、公開された *.xml ファイルの変更日を更新する必要があります。以下のコードは私が行った方法であり、Windows Serverで動作します

    GOOGLE_TEST.exe --gtest_output=xml 
    copy /b test_detail.xml+,,

touch test_detail.xmlLinuxまたはMacでは、代わりに実行する必要がある場合がありますcopy /b test_detail.xml(これは試していません)

于 2014-01-21T03:28:11.500 に答える