Skip to content

Commit bb88da7

Browse files
authored
Add Swift Testing to Core Libraries
1 parent 54ec23a commit bb88da7

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Swift Testing
2+
3+
Swift Testing is a package with expressive and intuitive APIs that make testing your Swift code a breeze.
4+
5+
It provides detailed output when a test fails using macros like `#expect`. And it scales to large codebases with features like parameterization to easily repeat a test with different arguments.
6+
7+
If you already have tests written using XCTest, you can run them side-by-side with newer tests written using Swift Testing. This helps you migrate tests incrementally, at your own pace.
8+
9+
More information about Swift Testing is available on our [GitHub project page](https://github.com/swiftlang/swift-testing).

documentation/core-libraries/index.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,13 @@ have a goal of providing stable and useful features in the following key areas:
2525

2626
These libraries are part of our ongoing work to extend the cross-platform capabilities of Swift. We chose to make them part of our open source release so that we can work on them together with the community.
2727

28-
Writing code that provides all of this functionality from scratch would be an enormous undertaking. Therefore, we've decided to bootstrap this project by taking advantage of great work that has already been done in these areas. Specifically, we will reuse the API and as much implementation as is possible from three existing libraries: `Foundation`, `libdispatch`, and `XCTest`.
28+
Writing code that provides all of this functionality from scratch would be an enormous undertaking. Therefore, we've decided to bootstrap this project by taking advantage of great work that has already been done in these areas. Specifically, we will reuse the API and as much implementation as is possible from three existing libraries: `Foundation`, `libdispatch`, and `XCTest`. In addition to these there is `Swift Testing`, a new testing library designed from the ground up for Swift.
2929

3030
* * *
3131

3232
{% include_relative _foundation.md %}
3333
{% include_relative _libdispatch.md %}
34+
{% include_relative _swift-testing.md %}
3435
{% include_relative _xctest.md %}
3536

3637
* * *
37-
38-
As stated above, this project is in its early days. We look forward to working together with the community to create a great set of libraries that enable Swift to produce powerful software across platforms.

0 commit comments

Comments
 (0)