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

Add Support for Parsing .xctestrun file and use it to start xctest #525

Merged
merged 26 commits into from
Jan 6, 2025
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
4bcc386
Add Support for Parsing .xctestrun file and use it to Start XCTest
bahrimootaz Dec 6, 2024
8e6375b
Add Support for Parsing .xctestrun file and use it to Start XCTest
bahrimootaz Dec 6, 2024
f1f4734
Add Support for Parsing .xctestrun file and use it to Start XCTest
bahrimootaz Dec 6, 2024
8451b6b
Add Support for Parsing .xctestrun file and use it to Start XCTest
bahrimootaz Dec 6, 2024
77167b8
Read all test configs from xctestrun file.
bahrimootaz Dec 6, 2024
6716cf6
Read all test configs from xctestrun file
bahrimootaz Dec 10, 2024
c088386
Merge pull request #1 from bahrimootaz/parse_all_test_config
bahrimootaz Dec 10, 2024
2df460e
fix parsing of the testingEnvVars
bahrimootaz Dec 10, 2024
5b61d8d
use a SchemeData while parsing xctestrun file to host the test configs
bahrimootaz Dec 11, 2024
5d7b9d0
Read all test configs from xctestrun file
bahrimootaz Dec 11, 2024
567570d
Read all test configs from xctestrun file
bahrimootaz Dec 11, 2024
11c4fba
optimize building the TestConfig from the parsed xctestrun file
bahrimootaz Dec 11, 2024
97319ec
Read all test configs from xctestrun file
bahrimootaz Dec 11, 2024
25364bd
Encapsulate the construction of the test config to 'xctestrun' parser…
bahrimootaz Dec 11, 2024
0d94d11
Resolve threads and add unit tests
bahrimootaz Dec 12, 2024
ca2e4f1
refactor testing to make it easy to read
bahrimootaz Dec 12, 2024
c85454c
Read all test configs from xctestrun file
bahrimootaz Dec 12, 2024
a80601d
resolve comments
bahrimootaz Dec 12, 2024
262b817
update comment
bahrimootaz Dec 12, 2024
ad2f45b
update class description
bahrimootaz Dec 12, 2024
4ba1cde
Merge branch 'main' into main
bahrimootaz Dec 12, 2024
6578be9
update variable names for clarity
bahrimootaz Dec 12, 2024
6e3d856
Add unit test for parsing IsUITestBundle from xctestrun file
bahrimootaz Dec 16, 2024
3e1b3d8
Add unit test for parsing IsUITestBundle from xctestrun file
bahrimootaz Dec 17, 2024
9194d63
Add unit test for parsing IsUITestBundle from xctestrun file
bahrimootaz Dec 18, 2024
c584aa8
Merge branch 'danielpaulus:main' into main
bahrimootaz Dec 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add unit test for parsing IsUITestBundle from xctestrun file
  • Loading branch information
bahrimootaz committed Dec 17, 2024
commit 3e1b3d8ea94551b6206fe123f5a385dc30002848
6 changes: 4 additions & 2 deletions ios/testmanagerd/xctestrunutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ func (data XCTestRunData) buildTestConfig(device ios.DeviceEntry, listener *Test
testsToSkip := data.TestConfig.SkipTestIdentifiers

testEnv := make(map[string]any)
maps.Copy(testEnv, data.TestConfig.EnvironmentVariables)
maps.Copy(testEnv, data.TestConfig.TestingEnvironmentVariables)
if data.TestConfig.IsUITestBundle {
maps.Copy(testEnv, data.TestConfig.EnvironmentVariables)
maps.Copy(testEnv, data.TestConfig.TestingEnvironmentVariables)
}

// Extract only the file name
var testBundlePath = filepath.Base(data.TestConfig.TestBundlePath)
Expand Down
Loading