mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This is mostly just cleanup: 1. Removes `diagnostic-descriptions.md` since it isn't used any more 2. Adds the group name to all the old notes files 3. Removes trailing whitespace 4. Adds "See Also" sections for notes that have links
8 lines
491 B
Markdown
8 lines
491 B
Markdown
# Module not testable (ModuleNotTestable)
|
|
|
|
## Overview
|
|
|
|
Modules imported using `@testable import` must have been compiled using the `-enable-testing` compiler flag.
|
|
|
|
`@testable import` allows clients of a module to access `internal` API when writing tests. A `@testable import` will report an error if the imported module was not compiled with the `-enable-testing` compiler flag. Use of `-enable-testing` is recommended only in debug builds or other builds not intended for production use.
|