Skip to content

Commit

Permalink
Enable testing of multiple packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sabhiram committed Feb 22, 2015
1 parent f874614 commit 5fb01e2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@ before_install:
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi

script:
- go test -v -covermode=count -coverprofile=coverage.out
- echo "mode: count" > coverage.out
- go test -v -covermode=count -coverprofile=magic_packet.out
- go test -v ./cmd/wol -covermode=count -coverprofile=wol.out
- cat magic_packet.out | tail -n +2 >> coverage.out
- cat wol.out | tail -n +2 >> coverage.out
- rm magic_packet.out wol.out
- goveralls -coverprofile=coverage.out -service travis-ci -repotoken $COVERALLS_TOKEN
11 changes: 11 additions & 0 deletions cmd/wol/alias_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package main

import (
"github.com/stretchr/testify/assert"
"testing"
)

// This is just a dummy test to enable cross package coverage
func TestDecodeToMacIface(test *testing.T) {
assert.Equal(test, 1, 1)
}

0 comments on commit 5fb01e2

Please sign in to comment.