Skip to content

Commit 5157b33

Browse files
committed
discuss how to disable XProtect on macos
1 parent 1d705bc commit 5157b33

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ You should now be able to run `ginkgo version` at the command line and see the G
4848

4949
**Note** you _must_ make sure the version of the `ginkgo` cli you install is the same as the version of Ginkgo in your `go.mod` file. You can do this by running `go install github.com/onsi/ginkgo/v2/ginkgo` from your package.
5050

51+
#### If you are running on MacOS
52+
53+
Ginkgo runs by using `go test -c` to compile test binaries for each subpackage. It then invokes those compiled binaries. MacOS's XProtect malware detector slows this process down substantially. You can disable [XProtect for your terminal](https://stackoverflow.com/questions/60176405/macos-catalina-developer-tools-tab-is-hidden/65240575#65240575) by running:
54+
55+
```bash
56+
spctl developer-mode enable-terminal
57+
```
58+
59+
and then opening up **System Settings** > **Privacy & Security** > **Developer Tools** and then adding your terminal to the list of developer tools.
60+
61+
> Doing this on an M1 Max macbook pro resulted in Ginkgo's unit and integration suites running in 47s instead of 1m 8s.
62+
5163
#### Upgrading Ginkgo
5264

5365
To upgrade Ginkgo run:

0 commit comments

Comments
 (0)