Skip to content

Commit

Permalink
Describes how to run Tests within IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorriegler committed Dec 25, 2020
1 parent 34e0d8c commit e815f03
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,20 @@ go test -run TestDetermineBranches # runs the single test named 'TestDetermineBr
go test -coverprofile=cover.out && go tool cover -html=cover.out
```

### Run the Tests from your IDE (GoLand or IntelliJ IDEA)

When you try to run *mob_test.go* in your IDE you may get the following errors:
```
./mob_test.go:17:2: undefined: configuration
./mob_test.go:17:18: undefined: getDefaultConfiguration
... and so on ...
```

This is because the **Run Configuration** uses **Test Kind: File** as default and therefor does not find the source code within *mob.go*.
Change the **Test Kind** to **Directory**, and try again.
The tests should work now.


## Design Concepts

- **mob** is a thin wrapper around git.
Expand Down

0 comments on commit e815f03

Please sign in to comment.