Files
swift-mirror/userdocs/diagnostics/module-not-testable.md
Ben Barham 55f61a84ca Re-generate diagnostics index and cleanup old notes
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
2025-10-20 19:19:36 -07:00

491 B

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.