-
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
fix: #842 support for test targets flag in multiple testbundles xctest #1219
fix: #842 support for test targets flag in multiple testbundles xctest #1219
Conversation
@@ -17,6 +19,8 @@ import java.nio.file.Paths | |||
class XctestrunTest { | |||
|
|||
private val swiftXctestrun = "$fixturesPath/EarlGreyExampleSwiftTests_iphoneos13.4-arm64e.xctestrun" | |||
private val multipleTargetsSwiftXctestrun = "$fixturesPath/axel/AllTests_iphoneos13.7-arm64e.xctestrun" |
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.
@jan-gogo In order to test new functionality, I have to add some new fixtures, but we should wait for this PR
#1148, right?
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.
@jan-gogo In order to test new functionality, I have to add some new fixtures, but we should wait for this PR
#1148, right?
Right
83503a6
to
960e9fc
Compare
d6e5864
to
aafdb17
Compare
Title does not follow the guidelines of Conventional Commits.
|
@@ -9,3 +9,4 @@ test_runner/flank/ | |||
local.properties | |||
/report.json | |||
results | |||
xcuserdata/ |
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.
User generated data for iOS projects (breakpoints, interface state etc.)
@@ -509,9 +509,9 @@ | |||
COPY_PHASE_STRIP = NO; | |||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; | |||
DEFINES_MODULE = NO; | |||
DEVELOPMENT_TEAM = AD2V26JBWL; | |||
DEVELOPMENT_TEAM = L2UF9MLSM6; |
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.
Using GogoApps code signing
Codecov Report
@@ Coverage Diff @@
## master #1219 +/- ##
============================================
+ Coverage 79.65% 79.72% +0.07%
- Complexity 715 721 +6
============================================
Files 233 233
Lines 4399 4410 +11
Branches 756 757 +1
============================================
+ Hits 3504 3516 +12
Misses 496 496
+ Partials 399 398 -1 |
test_runner/build.gradle.kts
Outdated
@@ -136,7 +136,7 @@ detekt { | |||
input = files("src/main/kotlin", "src/test/kotlin") | |||
config = files("../config/detekt.yml") | |||
parallel = true | |||
failFast = true // fail build on any finding | |||
failFast = false // fail build on any finding |
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.
What is the purpose of this change?
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.
Sorry, changed this for testing - already removed
9cf3f15
to
a4f8412
Compare
9de5636
to
3d2ab14
Compare
191ea61
to
55cdaa0
Compare
df76968
to
7410843
Compare
f1140d5
to
15105a8
Compare
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.
dd4a268
to
97702ce
Compare
- updated for using new test artefacts - resolved conflicts
- updated code signing in EarlGreyExample project - updated methods/test targets names
- added new iOS test project - created ops.sh scripts to generate test artifacts from it - adjusted fixture paths inside unit tests
- `findTestNamesForTarget` method Co-authored-by: Jan Góral <[email protected]>
Small XCTestRun's methods refactor Co-authored-by: Jan Góral <[email protected]>
Co-authored-by: pawelpasterz <[email protected]>
- refactored filterTests method
97702ce
to
0f4021a
Compare
Fixes #842
Describe the bug
If the original .xctestrun has multiple XCTest entries, Tests included via --test-targets flag will be added to the OnlyTestIdentifiers array on every XCTest entry, not just the one(s) that actually includes that test.
__
Currently Flank rewrites whole .xctestrun file with methods specified --test-targets without checking whether those methods actually exists in XCTest. This solution works fine for a .xctestrun files containing only one XCTest.
Solution
Flank now rewrites .xctestrun with mapping correct methods names with specific XCTests.
Test Plan
Checklist