Skip to content

Commit

Permalink
fix: error messages and run all tests (#381)
Browse files Browse the repository at this point in the history
Fixes scripts for running go tests and git tests
  • Loading branch information
gkze authored Sep 21, 2024
1 parent 87e224a commit e17d713
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/app/git/git_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func TestExtractGitInfo_FailToGetProjectRemoteUrl(t *testing.T) {
tC := FailTestCase{
desc: "Error returned by function to get the project remote url",
errMsg: "Some error",
expectedErr: "Could not get project Url: Some error",
expectedErr: "could not get project Url: Some error",
}
t.Run(tC.desc, func(t *testing.T) {
g := failingUrlManager{
Expand Down Expand Up @@ -227,7 +227,7 @@ func TestExtractGitInfo_FailToGetCurrentBranchName(t *testing.T) {
tC := FailTestCase{
desc: "Error returned by function to get the project remote url",
errMsg: "Some error",
expectedErr: "Failed to get current branch: Some error",
expectedErr: "failed to get current branch: Some error",
}
t.Run(tC.desc, func(t *testing.T) {
g := failingBranchManager{
Expand Down
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ PROJECTNAME=$(shell basename "$(PWD)")

## compile: build golang project
compile:
@cd cmd && go build -o bin && mv bin ../bin
@go build -o bin ./cmd
## test: run golang project tests
test:
@cd cmd/app && go test
@go test -v ./...

.PHONY: help
all: help
Expand Down

0 comments on commit e17d713

Please sign in to comment.