Skip to content

Conversation

@tanryberdi
Copy link

@tanryberdi tanryberdi commented Jan 5, 2023

Added Makefile for testing purpose #2

@tanryberdi tanryberdi changed the title Feat: Added Makefile Feat: Added Makefile #2 Jan 5, 2023
@tanryberdi tanryberdi changed the title Feat: Added Makefile #2 Feat: Added Makefile Jan 5, 2023
Makefile Outdated
@@ -0,0 +1,3 @@
test:
@echo "Testing ..."
@go clean -testcache && go test ./... No newline at end of file
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Git warns about newline. Please add a newline at the end.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of more changes here. Please add the following flags to go test

  1. -v for verbosity
  2. -race for data race detection
  3. -coverprofile cover.out for coverage profile

With cover.out, we can get the coverage. Please add this in next line.

go tool cover -func cover.out

Also, go test needn't be hid from stdout. You may keep go clean in @ and take go test command to next line.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@tanryberdi tanryberdi force-pushed the tanryberdi.add-makefile branch from 91813bd to b24244c Compare January 5, 2023 06:24
@vaguecoder vaguecoder linked an issue Jan 5, 2023 that may be closed by this pull request
Added Makefile for testing purpose
@tanryberdi tanryberdi force-pushed the tanryberdi.add-makefile branch from b24244c to b0726fa Compare January 5, 2023 09:31
@vaguecoder
Copy link
Owner

LGTM. Thanks @tanryberdi

@vaguecoder vaguecoder merged commit 4ad55e2 into vaguecoder:master Jan 5, 2023
@tanryberdi tanryberdi deleted the tanryberdi.add-makefile branch January 5, 2023 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a Makefile

2 participants