kiwitcms / junit-plugin

JUnit plugin for Kiwi TCMS
http://kiwitcms.org
GNU General Public License v3.0
4 stars 5 forks source link

Add annotation to tag tests by test case ID #336

Open Angelthree95 opened 1 year ago

Angelthree95 commented 1 year ago

If you have a nicely maintained Kiwi instance, where the test cases are manually added and your code doesn't reflect the names, then the TCMS junit plugin won't be able to find them properly (just by searching by name). By adding the @TcmsTestCaseId() annotation, you can override which test case is returned to the test plan. In case of invalid ID being provided the plugin will do the standard test case search.

codecov[bot] commented 1 year ago

Codecov Report

Attention: Patch coverage is 0% with 19 lines in your changes missing coverage. Please review.

Project coverage is 10.65%. Comparing base (c4f5aeb) to head (fd95cb5). Report is 10 commits behind head on master.

Files with missing lines Patch % Lines
src/main/java/org/kiwitcms/java/api/RpcClient.java 0.00% 11 Missing :warning:
.../java/org/kiwitcms/java/junit/TestDataEmitter.java 0.00% 5 Missing :warning:
...ava/org/kiwitcms/java/junit/KiwiTcmsExtension.java 0.00% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #336 +/- ## ============================================= - Coverage 58.86% 10.65% -48.22% + Complexity 126 34 -92 ============================================= Files 16 16 Lines 564 582 +18 Branches 33 37 +4 ============================================= - Hits 332 62 -270 - Misses 207 519 +312 + Partials 25 1 -24 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Angelthree95 commented 1 year ago

I extended this PR by some in here https://github.com/kiwitcms/junit-plugin/pull/348. Added all of your comments @atodorov. Closing this as outdated.

atodorov commented 1 year ago

I will review this one first, before reviewing the extended version.