You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,8 @@ public sealed class ApplicationTests : RevitApiTest
113
113
## Document testing
114
114
115
115
Tests that pass alone but fail together are a classic sign of shared state. Give each test its own document — created in `[Before(Test)]`, closed in `[After(Test)]` — and that problem disappears entirely.
116
-
Use the setup hook to seed the document with exactly the state each test needs.
116
+
Use the setup hook to seed the document with exactly the state each test needs. Feel free to use `[Before(Class)]` hook for read-only tests.
117
+
117
118
The `[HookExecutor<RevitThreadExecutor>]` attribute ensures hooks also run on Revit's thread:
0 commit comments