Skip to content

Commit b731280

Browse files
authored
Clarify note about supported target types in "Defining test functions" article (#1291)
1 parent d645e48 commit b731280

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/Testing/Testing.docc/DefiningTests.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ contains the test:
2525
import Testing
2626
```
2727

28-
- Note: Only import the testing library into a test target. Importing the
29-
testing library into an application, library, or binary target isn't
28+
- Note: Only import the testing library into a test target or library meant for
29+
test targets. Importing the testing library into a target intended for
30+
distribution such as an application, app library, or executable target isn't
3031
supported or recommended. Test functions aren't stripped from binaries when
3132
building for release, so logic and fixtures of a test may be visible to anyone
3233
who inspects a build product that contains a test function.

0 commit comments

Comments
 (0)