Skip to content

split xcode test target into two #57

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

Merged
merged 5 commits into from
Oct 10, 2024
Merged

Conversation

Augustyniak
Copy link
Contributor

@Augustyniak Augustyniak commented Oct 2, 2024

Fixes BIT-3772

The new test organization will simplify running "core" tests and "URLSession integration" tests separately. This is important because the "URLSession integration" tests take longer and require real network requests (something we may consider optimizing in the future).

With "core" tests as a separate target, it should be easier to run tests while developing locally.

The changes are mostly reorganizational. The old "test" target was split into 3 targets:

  • core tests
  • URLSession integration tests
  • mocks
Screenshot 2024-10-04 at 10 12 47 AM

bufferDirectory: url,
// swiftlint:disable:next force_unwrapping
apiURL: URL(string: "https://localhost:\(port)")!,
remoteErrorReporter: nil,
configuration: configuration,
sessionProvider: InMemorySessionProvider(sessionIDGenerator: { UUID().uuidString }),
sessionStrategy: .fixed(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I noticed that benchmark app was broken so fixed it in here

@Augustyniak Augustyniak marked this pull request as ready for review October 4, 2024 14:12
@Augustyniak Augustyniak requested review from murki and Reflejo October 4, 2024 14:20
@Augustyniak Augustyniak merged commit b9dd94f into main Oct 10, 2024
14 checks passed
@Augustyniak Augustyniak deleted the split-xcode-test-target-into-two branch October 10, 2024 15:13
@github-actions github-actions bot locked and limited conversation to collaborators Oct 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants