28 lines
476 B
Go
28 lines
476 B
Go
package main_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
. "github.com/onsi/ginkgo"
|
|
. "github.com/onsi/gomega"
|
|
|
|
"github.com/onsi/gomega/gexec"
|
|
)
|
|
|
|
var checkPath string
|
|
|
|
func TestCheck(t *testing.T) {
|
|
RegisterFailHandler(Fail)
|
|
RunSpecs(t, "Check Suite")
|
|
}
|
|
|
|
var _ = BeforeSuite(func() {
|
|
var err error
|
|
checkPath, err = gexec.Build("github.com/concourse/github-release-resource/cmd/check")
|
|
Ω(err).ShouldNot(HaveOccurred())
|
|
})
|
|
|
|
var _ = AfterSuite(func() {
|
|
gexec.CleanupBuildArtifacts()
|
|
})
|