Skip to content

Commit e17d713

Browse files
authored
fix: error messages and run all tests (#381)
Fixes scripts for running go tests and git tests
1 parent 87e224a commit e17d713

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cmd/app/git/git_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func TestExtractGitInfo_FailToGetProjectRemoteUrl(t *testing.T) {
198198
tC := FailTestCase{
199199
desc: "Error returned by function to get the project remote url",
200200
errMsg: "Some error",
201-
expectedErr: "Could not get project Url: Some error",
201+
expectedErr: "could not get project Url: Some error",
202202
}
203203
t.Run(tC.desc, func(t *testing.T) {
204204
g := failingUrlManager{
@@ -227,7 +227,7 @@ func TestExtractGitInfo_FailToGetCurrentBranchName(t *testing.T) {
227227
tC := FailTestCase{
228228
desc: "Error returned by function to get the project remote url",
229229
errMsg: "Some error",
230-
expectedErr: "Failed to get current branch: Some error",
230+
expectedErr: "failed to get current branch: Some error",
231231
}
232232
t.Run(tC.desc, func(t *testing.T) {
233233
g := failingBranchManager{

makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ PROJECTNAME=$(shell basename "$(PWD)")
44

55
## compile: build golang project
66
compile:
7-
@cd cmd && go build -o bin && mv bin ../bin
7+
@go build -o bin ./cmd
88
## test: run golang project tests
99
test:
10-
@cd cmd/app && go test
10+
@go test -v ./...
1111

1212
.PHONY: help
1313
all: help

0 commit comments

Comments
 (0)