You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrating `swift-service-context` from XCTest to Swift Testing
### Motivation
Swift Testing is a modern alternative to XCTest. Swift Server Ecosystem
packages should serve as reference implementations for modern Swift
features and best practices.
### Modifications
- 1-to-1 migration of test suites, tests, and assertions to Swift
Testing syntax with XCTest import removed
### Result
Successfully executes 10 tests with `swift test --disable-xctest`.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+32-1Lines changed: 32 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,38 @@ A good patch is:
50
50
51
51
### Run CI checks locally
52
52
53
-
You can run the Github Actions workflows locally using [act](https://github.com/nektos/act). For detailed steps on how to do this please see [https://github.com/swiftlang/github-workflows?tab=readme-ov-file#running-workflows-locally](https://github.com/swiftlang/github-workflows?tab=readme-ov-file#running-workflows-locally).
53
+
You can run the Github Actions workflows locally using
54
+
[act](https://github.com/nektos/act). To run all the jobs that run on a pull
55
+
request, use the following command:
56
+
57
+
```
58
+
% act pull_request
59
+
```
60
+
61
+
To run just a single job, use `workflow_call -j <job>`, and specify the inputs
62
+
the job expects. For example, to run just shellcheck:
0 commit comments