File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed
Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 3737 script :
3838 - curl -L https://github.com/SimonBaeumer/commander/releases/download/v0.3.0/commander-darwin-amd64 -o ~/bin/commander
3939 - chmod +x ~/bin/commander
40- - make test- integration
40+ - make integration
4141
4242 - name : windows Unit
4343 os : windows
5353 - choco install curl
5454 - curl -L https://github.com/SimonBaeumer/commander/releases/download/v0.3.0/commander-windows-amd64 -o C:\Windows\system32\commander.exe
5555 script :
56- - make test- integration-windows
56+ - make integration-windows
5757
5858 - name : Unit tests
5959 before_script :
6666 - ./test-reporter after-build -t gocov --exit-code $TRAVIS_TEST_RESULT
6767
6868 - name : Integration test
69- script : make test- integration
69+ script : make integration
7070
7171 - stage : deploy
7272 name : " Deployment"
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ exe = cmd/commander/*
22cmd = commander
33TRAVIS_TAG ?= "0.0.0"
44
5- .PHONY : deps lint test test- integration git-hooks init
5+ .PHONY : deps lint test integration integration-windows git-hooks init
66
77init : git-hooks
88
@@ -30,11 +30,11 @@ test-coverage:
3030 $(info INFO: Starting build $@ )
3131 go test -coverprofile c.out ./...
3232
33- test- integration : build
33+ integration : build
3434 $(info INFO: Starting build $@ )
3535 commander test commander_unix.yaml
3636
37- test- integration-windows : build
37+ integration-windows : build
3838 $(info INFO: Starting build $@ )
3939 commander test commander_windows.yaml
4040
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ $ make test
185185$ make test-coverage
186186
187187# Integration tests
188- $ make test- integration
188+ $ make integration
189189
190190# Add depdencies to vendor
191191$ make deps
Original file line number Diff line number Diff line change @@ -81,12 +81,14 @@ func TestNotContainsMatcher(t *testing.T) {
8181 m := NotContainsMatcher {}
8282 r := m .Match ("lore ipsum donor" , "hello" )
8383 assert .True (t , r .Success )
84- assert .Empty ( t , r .Diff )
84+ assert .Equal ( t , " \n Expected \n \n lore ipsum donor \n \n to not contain \n \n hello \n " , r .Diff )
8585}
8686
8787func TestNotContainsMatcher_Fails (t * testing.T ) {
8888 m := NotContainsMatcher {}
8989 r := m .Match ("lore ipsum donor" , "donor" )
9090 assert .False (t , r .Success )
91- assert .Empty (t , r .Diff )
91+
92+ diffText := "\n Expected\n \n lore ipsum donor\n \n to not contain\n \n donor\n "
93+ assert .Equal (t , diffText , r .Diff )
9294}
You can’t perform that action at this time.
0 commit comments