Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 299be2a

Browse files
authored
Merge pull request #642 from utPLSQL/fixes/xunit_reporter
Fixes/xunit reporter
2 parents 57cba82 + e629c61 commit 299be2a

25 files changed

Lines changed: 664 additions & 419 deletions

docs/about/authors.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
| Robert Love | [rlove](https://github.com/rlove)
1212
| Vinicius Avellar | [viniciusam](https://github.com/viniciusam/)
1313
| Samuel Nitsche | [pesse](https://github.com/pesse/)
14+
| Lukasz Wasylow | [lwasylow](https://github.com/lwasylow/)
1415

1516

1617

docs/images/junit_errors.png

17.8 KB
Loading

docs/images/junit_summary.png

20 KB
Loading
-41.3 KB
Binary file not shown.
-51.2 KB
Binary file not shown.

docs/userguide/reporters.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,26 @@ Example outputs from documentation reporter.
3939
![doc_reporter_outputs](../images/documentation_reporter_color.png)
4040

4141

42-
# XUnit reporter
42+
# JUnit reporter
4343

44-
Most of continuous integration servers (like Jenkins) are capable of consuming unit test execution results in [XUnit/JUnit](https://en.wikipedia.org/wiki/XUnit) format.
45-
The `ut_xunit_reporter` is producing outcomes as XUnit-compatible XML unit test report, that can be used by CI servers to display their custom reports and provide metrics (like tests execution trends).
44+
Most of continuous integration servers (like Jenkins) are capable of consuming unit test execution results in [JUnit](https://en.wikipedia.org/wiki/JUnit) format.
45+
The `ut_junit_reporter` in earlier version referred as ut_xunit_reporter is producing outcomes as JUnit-compatible XML unit test report, that can be used by CI servers to display their custom reports and provide metrics (like tests execution trends).
46+
Please note that in previous versions it was called ut_xunit_reporter and for backward compatibility that name still exists.
4647

47-
Invocation of tests with XUnit reporter.
48+
Invocation of tests with JUnit reporter.
4849

49-
`exec ut.run(ut_xunit_reporter());`
50+
`exec ut.run(ut_junit_reporter());`
5051

51-
The `ut_xunit_reporter` doesn't accept any arguments.
52+
The `ut_junit_reporter` doesn't accept any arguments.
5253

53-
Example of xunit report integrated with [Jenkins CI](https://jenkins.io/)
54+
Example of junit report integrated with [Jenkins CI](https://jenkins.io/)
5455

55-
![xunit_reporter_outputs](../images/xunit_reporter_jenkins.png)
56+
![junit_reporter_outputs](../images/junit_summary.png)
5657

5758
Example of failure report details
5859

59-
![xunit_reporter_outputs](../images/xunit_reporter_jenkins_errors.png)
60+
![junit_reporter_outputs](../images/junit_errors.png)
61+
6062

6163

6264
# Teamcity reporter

old_tests/RunAll.sql

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,9 @@ exec ut_coverage.coverage_start_develop();
8383
@@lib/RunTest.sql ut_reporters/ut_sonar_test_reporter.AcceptsFileMapping.sql
8484
@@lib/RunTest.sql ut_reporters/ut_sonar_test_reporter.ProducesExpectedOutputs.sql
8585
@@lib/RunTest.sql ut_reporters/ut_teamcity_reporter.ProducesExpectedOutputs.sql
86-
@@lib/RunTest.sql ut_reporters/ut_xunit_reporter.ProducesExpectedOutputs.sql
8786
@@lib/RunTest.sql ut_reporters/ut_html_reporter.UserOverrideSchemaCoverage.sql
8887
@@lib/RunTest.sql ut_reporters/ut_html_reporter.DefaultSchemaCoverage.sql
8988
@@lib/RunTest.sql ut_reporters/ut_documentation_reporter.reportMultipleWarnings.sql
90-
@@lib/RunTest.sql ut_reporters/ut_xunit_reporter.ReportOnSuiteWithoutDesc.sql
91-
@@lib/RunTest.sql ut_reporters/ut_xunit_reporter.ReportOnTestWithoutDesc.sql
9289
@@lib/RunTest.sql ut_reporters/ut_documentation_reporter.reportTestTiming.sql
9390

9491
@@lib/RunTest.sql ut/ut.run.AcceptsCoverageFileList.sql
@@ -436,9 +433,7 @@ begin
436433
'source/reporters/ut_teamcity_reporter.tpb',
437434
'source/reporters/ut_teamcity_reporter.tps',
438435
'source/reporters/ut_teamcity_reporter_helper.pkb',
439-
'source/reporters/ut_teamcity_reporter_helper.pks',
440-
'source/reporters/ut_xunit_reporter.tpb',
441-
'source/reporters/ut_xunit_reporter.tps');
436+
'source/reporters/ut_teamcity_reporter_helper.pks');
442437

443438
l_test_run := ut_run(a_items => ut_suite_items(), a_project_file_mappings => ut_file_mapper.build_file_mappings( user,l_project_file_list));
444439

old_tests/ut_reporters/ut_xunit_reporter.ProducesExpectedOutputs.sql

Lines changed: 0 additions & 53 deletions
This file was deleted.

old_tests/ut_reporters/ut_xunit_reporter.ReportOnSuiteWithoutDesc.sql

Lines changed: 0 additions & 47 deletions
This file was deleted.

old_tests/ut_reporters/ut_xunit_reporter.ReportOnTestWithoutDesc.sql

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)