1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00
This commit is contained in:
Carlos Alexandro Becker 2017-07-13 22:54:28 -03:00
parent 5b648b8a0d
commit 35278e85f5
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -6,8 +6,6 @@ import (
"path/filepath"
"testing"
"fmt"
"github.com/goreleaser/goreleaser/config"
"github.com/goreleaser/goreleaser/context"
"github.com/stretchr/testify/assert"
@ -97,7 +95,6 @@ func TestRunPipeBinary(t *testing.T) {
ctx.AddBinary("darwinamd64", "mybin_darwin", "mybin", filepath.Join(dist, "mybin_darwin", "mybin"))
ctx.AddBinary("windowsamd64", "mybin_win", "mybin.exe", filepath.Join(dist, "mybin_win", "mybin.exe"))
assert.NoError(Pipe{}.Run(ctx))
fmt.Println(ctx.Artifacts)
assert.Contains(ctx.Artifacts, "mybin_darwin/mybin")
assert.Contains(ctx.Artifacts, "mybin_win/mybin.exe")
assert.Len(ctx.Artifacts, 2)