-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip @Ignore tests before send it to ftl and reapply to local JUnit Xml #853
Skip @Ignore tests before send it to ftl and reapply to local JUnit Xml #853
Conversation
Codecov Report
@@ Coverage Diff @@
## master #853 +/- ##
============================================
- Coverage 81.39% 81.26% -0.14%
- Complexity 638 644 +6
============================================
Files 167 170 +3
Lines 3257 3298 +41
Branches 468 472 +4
============================================
+ Hits 2651 2680 +29
- Misses 342 354 +12
Partials 264 264 |
…nd-it-to-ftl' into 852-Skip-@Ignore-tests-before-send-it-to-ftl
args = args, | ||
forcedShardCount = args.numUniformShards | ||
).run { | ||
return@run copy( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary return@run
forcedShardCount = args.numUniformShards | ||
).run { | ||
return@run copy( | ||
shards = this.shardChunks.filter { it.isNotEmpty() }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary this
@@ -114,14 +123,27 @@ object ReportManager { | |||
HtmlErrorReport | |||
).map { it.run(matrices, testSuite, printToStdout = false, args = args) } | |||
} | |||
JUnitReport.run(matrices, testSuite, printToStdout = false, args = args) | |||
JUnitReport.run(matrices, testSuite.apply { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JUnitReport.run(matrices, testSuite?.apply {
if (ignoredTestCases.isNotEmpty()) {
testsuites?.add(ignoredTestCases.toJunitTestsResults())
}
}, printToStdout = false, args = args)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this code, good work!
Co-authored-by: bootstraponline <[email protected]>
Fixes #852
Test Plan
Ignored test should't shows on FTL
Checklist