Skip to content
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

Merged
merged 13 commits into from
Jun 17, 2020

Conversation

adamfilipow92
Copy link
Contributor

@adamfilipow92 adamfilipow92 commented Jun 15, 2020

Fixes #852

Test Plan

How do we know the code works?
.

Ignored test should't shows on FTL

Checklist

  • Unit tested
  • release_notes.md updated
  • Add ignored tests to test app

@adamfilipow92 adamfilipow92 self-assigned this Jun 15, 2020
@codecov-commenter
Copy link

codecov-commenter commented Jun 15, 2020

Codecov Report

Merging #853 into master will decrease coverage by 0.13%.
The diff coverage is 78.78%.

Impacted file tree graph

@@             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              

@adamfilipow92 adamfilipow92 changed the title Add ignored tests Skip @Ignore tests before send it to ftl and reapply to local JUnit Xml Jun 16, 2020
args = args,
forcedShardCount = args.numUniformShards
).run {
return@run copy(
Copy link
Contributor

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() },
Copy link
Contributor

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 {
Copy link
Contributor

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)

@piotradamczyk5 piotradamczyk5 marked this pull request as ready for review June 16, 2020 17:10
jan-goral
jan-goral previously approved these changes Jun 16, 2020
Copy link
Contributor

@jan-goral jan-goral left a 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]>
@adamfilipow92 adamfilipow92 merged commit 7f3f1eb into master Jun 17, 2020
@adamfilipow92 adamfilipow92 deleted the 852-Skip-@Ignore-tests-before-send-it-to-ftl branch June 17, 2020 12:20
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.

Skip @Ignore tests before send them to FTL and add to final JUnitResult
5 participants