Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix JENKINS-23484
Added health scale factor
- Loading branch information
Showing
11 changed files
with
621 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/resources/hudson/plugins/nunit/NUnitPublisher/help-healthScaleFactor.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<div> | ||
The amplification factor to apply to test failures when computing the test result contribution to the build health | ||
score. | ||
<br /> | ||
The default factor is <code>1.0</code> | ||
<ul> | ||
<li>A factor of <code>0.0</code> will disable the test result contribution to build health score.</li> | ||
<li>A factor of <code>0.1</code> means that 10% of tests failing will score 99% health</li> | ||
<li>A factor of <code>0.5</code> means that 10% of tests failing will score 95% health</li> | ||
<li>A factor of <code>1.0</code> means that 10% of tests failing will score 90% health</li> | ||
<li>A factor of <code>2.0</code> means that 10% of tests failing will score 80% health</li> | ||
<li>A factor of <code>2.5</code> means that 10% of tests failing will score 75% health</li> | ||
<li>A factor of <code>5.0</code> means that 10% of tests failing will score 50% health</li> | ||
<li>A factor of <code>10.0</code> means that 10% of tests failing will score 0% health</li> | ||
</ul> | ||
The factor is persisted with the build results, so changes will only be reflected in new builds. | ||
</div> |
16 changes: 16 additions & 0 deletions
16
src/main/resources/hudson/plugins/nunit/NUnitPublisher/help-healthScaleFactor_ja.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div> | ||
空模様(ビルドの状態)へのテスト結果の影響を算出する際の失敗したテストに適用する倍率です。 | ||
<br /> | ||
デフォルトの倍率は<code>1.0</code>です。 | ||
<ul> | ||
<li>倍率 <code>0.0</code> の場合、空模様の算出にテスト結果は使用しません。</li> | ||
<li>倍率 <code>0.1</code> の場合、テストの10%が失敗すると空模様は99%になります。</li> | ||
<li>倍率 <code>0.5</code> の場合、テストの10%が失敗すると空模様は95%になります。</li> | ||
<li>倍率 <code>1.0</code> の場合、テストの10%が失敗すると空模様は90%になります。</li> | ||
<li>倍率 <code>2.0</code> の場合、テストの10%が失敗すると空模様は80%になります。</li> | ||
<li>倍率 <code>2.5</code> の場合、テストの10%が失敗すると空模様は750%になります。</li> | ||
<li>倍率 <code>5.0</code> の場合、テストの10%が失敗すると空模様は50%になります。</li> | ||
<li>倍率 <code>10.0</code> の場合、テストの10%が失敗すると空模様は0%になります。</li> | ||
</ul> | ||
倍率はビルドごとに保存されるので、変更は新規のビルドから反映されます。 | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/test/resources/hudson/plugins/nunit/NUnit-healthReport.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<test-results name="/home/erik/coding/test/nunittests/Tests.dll" total="4" failures="1" not-run="0" date="2007-07-27" time="11:18:43"> | ||
<environment nunit-version="2.2.8.0" clr-version="2.0.50727.42" os-version="Unix 2.6.18.4" platform="Unix" cwd="/home/erik/coding/test/nunittests" machine-name="akira.ramfelt.se" user="erik" user-domain="akira.ramfelt.se" /> | ||
<culture-info current-culture="sv-SE" current-uiculture="sv-SE" /> | ||
<test-suite name="/home/erik/coding/test/nunittests/Tests.dll" success="False" time="0.404" asserts="0"> | ||
<results> | ||
<test-suite name="UnitTests" success="False" time="0.393" asserts="0"> | ||
<results> | ||
<test-suite name="UnitTests.MainClassTest" success="False" time="0.289" asserts="0"> | ||
<results> | ||
<test-case name="UnitTests.MainClassTest.TestPropertyValue" executed="True" success="True" time="0.146" asserts="1" /> | ||
<test-case name="UnitTests.MainClassTest.TestMethodUpdateValue" executed="True" success="True" time="0.001" asserts="1" /> | ||
<test-case name="UnitTests.MainClassTest.TestFailure" executed="True" success="False" time="0.092" asserts="1"> | ||
<failure> | ||
<message><![CDATA[ Expected failure | ||
Expected: 30 | ||
But was: 20 | ||
]]></message> | ||
<stack-trace><![CDATA[ at UnitTests.MainClassTest.TestFailure () [0x00000] | ||
at <0x00000> <unknown method> | ||
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[]) | ||
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] | ||
]]></stack-trace> | ||
</failure> | ||
</test-case> | ||
<test-case name="UnitTests.MainClassTest.TestPropertyValue1" executed="True" success="True" time="0.146" asserts="1" /> | ||
<test-case name="UnitTests.MainClassTest.TestPropertyValue2" executed="True" success="True" time="0.146" asserts="1" /> | ||
<test-case name="UnitTests.MainClassTest.TestPropertyValue3" executed="True" success="True" time="0.146" asserts="1" /> | ||
<test-case name="UnitTests.MainClassTest.TestPropertyValue4" executed="True" success="True" time="0.146" asserts="1" /> | ||
<test-case name="UnitTests.MainClassTest.TestPropertyValue5" executed="True" success="True" time="0.146" asserts="1" /> | ||
<test-case name="UnitTests.MainClassTest.TestPropertyValue6" executed="True" success="True" time="0.146" asserts="1" /> | ||
<test-case name="UnitTests.MainClassTest.TestPropertyValue7" executed="True" success="True" time="0.146" asserts="1" /> | ||
</results> | ||
</test-suite> | ||
</results> | ||
</test-suite> | ||
</results> | ||
</test-suite> | ||
</test-results> |
Oops, something went wrong.