Skip to content

Commit e815f03

Browse files
committed
Describes how to run Tests within IDE
1 parent 34e0d8c commit e815f03

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,20 @@ go test -run TestDetermineBranches # runs the single test named 'TestDetermineBr
219219
go test -coverprofile=cover.out && go tool cover -html=cover.out
220220
```
221221

222+
### Run the Tests from your IDE (GoLand or IntelliJ IDEA)
223+
224+
When you try to run *mob_test.go* in your IDE you may get the following errors:
225+
```
226+
./mob_test.go:17:2: undefined: configuration
227+
./mob_test.go:17:18: undefined: getDefaultConfiguration
228+
... and so on ...
229+
```
230+
231+
This is because the **Run Configuration** uses **Test Kind: File** as default and therefor does not find the source code within *mob.go*.
232+
Change the **Test Kind** to **Directory**, and try again.
233+
The tests should work now.
234+
235+
222236
## Design Concepts
223237

224238
- **mob** is a thin wrapper around git.

0 commit comments

Comments
 (0)