From 3a58818ea64480edf778e02a918372feae1e032a Mon Sep 17 00:00:00 2001 From: JuFisch Date: Tue, 1 Aug 2017 16:03:44 -0400 Subject: [PATCH] Add note to install Testify * docs: Add note to install Testify The Hugo Contributor Guide (Development) instructs users to run "go test ./..." and ensure it passes before moving on. However Hugo requires the Testify package for testing, and running the go test command without Testify results in 'cannot find package' errors and failing tests. It's hard to understand what to do next for users not familiar with Go dependencies. This commit adds a note to the contributor guide instructing users to get Testify if they don't already have it installed. Running the 'go get' command added here results in passing tests in the next step of the contributor guide. * Fix typo https:// in go get command --- content/contribute/development.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/contribute/development.md b/content/contribute/development.md index 8261c0e1b..2e5b92fbd 100644 --- a/content/contribute/development.md +++ b/content/contribute/development.md @@ -139,6 +139,12 @@ So, let's clone that master repository: go get -v -u github.com/gohugoio/hugo ``` +Hugo relies on [Testify](https://github.com/stretchr/testify) for testing Go code. If you don't already have it, get the Testify testing tools: + +``` +go get github.com/stretchr/testify +``` + ### Fork the repository If you're not fimiliar with this term, GitHub's [help pages](https://help.github.com/articles/fork-a-repo/) provide again a simple explanation: