Files
athens/pkg/module/all_test.go
Marwan Sulaiman 298c6cd74d cmd/proxy/actions: pass NoSumPatterns to GoGetFetcher (#1391)
* cmd/proxy/actions: pass NoSumPatterns to GoGetFetcher

* add gosum unit tests

* upgrade appveyor to 1.13

* fix test typo

* check appveyor version

* AppVeyor has no 1.13

* use logger
2019-09-23 12:47:40 -04:00

33 lines
729 B
Go

package module
import (
"testing"
"github.com/gobuffalo/envy"
"github.com/spf13/afero"
"github.com/stretchr/testify/suite"
)
const (
// these values need to point to a real repository that has a tag
// github.com/NYTimes/gizmo is a example of a path that needs to be encoded so we can cover that case as well
repoURI = "github.com/NYTimes/gizmo"
version = "v0.1.4"
)
type ModuleSuite struct {
suite.Suite
fs afero.Fs
goBinaryName string
env []string
}
func (m *ModuleSuite) SetupTest() {
m.fs = afero.NewMemMapFs()
}
func TestModules(t *testing.T) {
goBinaryPath := envy.Get("GO_BINARY_PATH", "go")
suite.Run(t, &ModuleSuite{goBinaryName: goBinaryPath, env: []string{"GOPROXY=direct"}})
}