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

test: Migrate to Swift Testing #14

Merged
merged 2 commits into from
Oct 23, 2024
Merged

test: Migrate to Swift Testing #14

merged 2 commits into from
Oct 23, 2024

Conversation

cybersonik
Copy link
Owner

Add swift-testing package to project
Upgrade devcontainer image to use nightly-6.0-jammy for swift-testing
    support on Linux
Convert the following XCTests to Swift Testing:

  • RepoTests
  • EndpointSessionTests
  • EndpointTests

Move EndpointTests performance test into new EndpointPerformanceTests
    XCTestCase
Delete redundant GitHubStatsCore and associated XCTests

Add swift-testing package to project
Upgrade devcontainer image to use nightly-6.0-jammy for swift-testing
    support on Linux
Convert the following XCTests to Swift Testing:
- RepoTests
- EndpointSessionTests
- EndpointTests

Move EndpointTests performance test into new EndpointPerformanceTests
    XCTestCase
Delete redundant GitHubStatsCore and associated XCTests
@cybersonik cybersonik force-pushed the update_to_swift_testing branch from 75436f8 to 6a533a3 Compare September 7, 2024 23:13
@cybersonik cybersonik force-pushed the update_to_swift_testing branch 3 times, most recently from f729be2 to f993fb4 Compare October 18, 2024 03:04
Split job into macOS and Ubuntu specific jobs
Add concurrency setting to GHA so only one per branch will run at a time
Update GH actions to their latest versions
Update GH runner to latest Swift Ubuntu image
Update GH runner to macOS 15
Replace setup-swift action with xcode-select-version-action and update
    to Xcode 16 on macOS
Build tests when building package
Use --skip testGetPullRequestsPerformance to not run long running tests
Set TEST_GITHUB_TOKEN environment variable at the swift test level
Update test-reporting path to new swift-testing results file path
Add workaround for test-reporting
    issue [1169](actions/checkout#1169)

Switch swift-testing package to use newly released v0.12.0

Update missed Swift Testing migration of XCTSkip to @suite(.disabled())
    in EndpointTests
Change testGetPullRequestsPerformance timeout to 3 minutes

TODO: Collapse macOS and Ubuntu jobs back into one
@cybersonik cybersonik force-pushed the update_to_swift_testing branch from f993fb4 to 71ea04c Compare October 23, 2024 02:54
@cybersonik cybersonik merged commit 82f0462 into main Oct 23, 2024
4 checks passed
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.

1 participant