From fe379ff74f6c29a20b6620d26fa3e3e52071075c Mon Sep 17 00:00:00 2001
From: Will McCutchen <will@mccutch.org>
Date: Mon, 29 May 2017 22:04:00 -0700
Subject: [PATCH] Run go-bindata before running tests

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index d524a4c..b70db00 100644
--- a/Makefile
+++ b/Makefile
@@ -7,10 +7,10 @@ dist/go-httpbin: assets *.go httpbin/*.go
 assets: httpbin/assets/*
 	go-bindata -o httpbin/assets.go -pkg=httpbin -prefix=httpbin/assets httpbin/assets
 
-test:
+test: assets
 	go test -v github.com/mccutchen/go-httpbin/httpbin
 
-testcover:
+testcover: assets
 	mkdir -p dist
 	go test -coverprofile=dist/coverage.out github.com/mccutchen/go-httpbin/httpbin
 	go tool cover -html=dist/coverage.out
-- 
GitLab