Skip to content

Commit 6100895

Browse files
committed
docs: FUnit.Directives in README
1 parent f77ccba commit 6100895

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,21 @@ Must.BeTrue(!list.Contains(x)); // ✅ Prefer: Must.HaveSameSequence(expectedLi
133133

134134

135135

136+
## 🧭 `FUnit.Directives`
137+
138+
With FUnit.Directives package, you can *include* external file into file-based app project by adding special directive comment `//:funit:include <path to the file>`.
139+
140+
```cs
141+
#:package FUnit@*
142+
#:package FUnit.Directives@*
143+
144+
//:funit:include ./path/to/external-file.cs
145+
146+
return FUnit.Run( /* tests depending on 'external-file.cs */ );
147+
```
148+
149+
150+
136151

137152

138153
# 🧪 Unit Test Execution

0 commit comments

Comments
 (0)