Skip to content

Add junit-platform TestTag support#1467

Merged
leonard84 merged 3 commits into
spockframework:masterfrom
leonard84:add_test-tag_support
May 31, 2022
Merged

Add junit-platform TestTag support#1467
leonard84 merged 3 commits into
spockframework:masterfrom
leonard84:add_test-tag_support

Conversation

@leonard84
Copy link
Copy Markdown
Member

supersedes #1437

@leonard84 leonard84 self-assigned this May 4, 2022
@leonard84 leonard84 added this to the 2.2 milestone May 4, 2022
@leonard84 leonard84 requested a review from marcphilipp May 4, 2022 19:31
@codecov
Copy link
Copy Markdown

codecov Bot commented May 4, 2022

Codecov Report

Merging #1467 (c9b3232) into master (79c8e96) will increase coverage by 0.05%.
The diff coverage is 91.48%.

@@             Coverage Diff              @@
##             master    #1467      +/-   ##
============================================
+ Coverage     79.61%   79.66%   +0.05%     
- Complexity     4015     4040      +25     
============================================
  Files           404      407       +3     
  Lines         12565    12611      +46     
  Branches       1640     1642       +2     
============================================
+ Hits          10003    10047      +44     
- Misses         1967     1968       +1     
- Partials        595      596       +1     
Impacted Files Coverage Δ
...rg/spockframework/runtime/model/ITestTaggable.java 0.00% <0.00%> (ø)
...java/org/spockframework/runtime/model/TestTag.java 93.10% <93.10%> (ø)
...n/java/org/spockframework/runtime/FeatureNode.java 85.71% <100.00%> (+5.71%) ⬆️
...mework/runtime/extension/builtin/TagExtension.java 100.00% <100.00%> (ø)
.../org/spockframework/runtime/model/FeatureInfo.java 98.38% <100.00%> (+0.11%) ⬆️
.../runtime/extension/builtin/TimeoutInterceptor.java 83.33% <0.00%> (-3.71%) ⬇️
.../java/org/spockframework/runtime/SpockRuntime.java 72.66% <0.00%> (+2.87%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 79c8e96...c9b3232. Read the comment docs.

return value != null && value.length() > 0 && value.codePoints().noneMatch(INVALID_CODE_POINTS);
}

private static String getInvalidCharacters(@Nullable String value) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should move this to the JUnit Platform so this TestTag can be a simple wrapper around JUnit Platform's TestTag.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I open a PR?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do! 👍

@vanta
Copy link
Copy Markdown

vanta commented May 30, 2022

@marcphilipp @leonard84 good to see this feature, when we can expect it to be released?

@leonard84 leonard84 merged commit ead17be into spockframework:master May 31, 2022
@leonard84 leonard84 deleted the add_test-tag_support branch May 31, 2022 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filtering by tags in JUnit 5 prevents Spock specs from being executed

3 participants