mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
testing_faq.md: VisibleForTesting
This commit is contained in:
parent
6d63366744
commit
dfaf841bfb
@ -99,6 +99,8 @@ Set system property `idea.split.test.logs` to `true` to generate separate test l
|
||||
|
||||
Annotate with [`org.jetbrains.annotations.TestOnly`](https://github.com/JetBrains/java-annotations/blob/master/common/src/main/java/org/jetbrains/annotations/TestOnly.java), usages will be highlighted via inspection <control>JVM languages | Test-only usage in production code</control>.
|
||||
|
||||
To mark members whose visibility is higher than necessary to be used from tests, use [`org.jetbrains.annotations.VisibleForTesting`](https://github.com/JetBrains/java-annotations/blob/master/common/src/main/java/org/jetbrains/annotations/VisibleForTesting.java)
|
||||
|
||||
### How to run tests for all files in a directory?
|
||||
|
||||
Use [`FileBasedTestCaseHelper`](%gh-ic%/platform/testFramework/src/com/intellij/testFramework/FileBasedTestCaseHelper.java), please see its Javadoc for instructions.
|
||||
|
Loading…
x
Reference in New Issue
Block a user