Skip to content

Commit

Permalink
[WIP]Exclude generated file from unit test (#143)
Browse files Browse the repository at this point in the history
* Exclude generated file from unit test

Signed-off-by: Yuvraj <[email protected]>
  • Loading branch information
yindia authored Jul 12, 2021
1 parent a144275 commit c1d273c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flytectl/.github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
GO111MODULE: "on"
CI_ENV: "true"
with:
args: make install && make test_unit_codecov
args: make install && make test_unit_without_flag
- name: Push CodeCov
uses: codecov/[email protected]
with:
Expand Down
6 changes: 6 additions & 0 deletions flytectl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ install-piptools:
doc-requirements.txt: doc-requirements.in install-piptools
$(call PIP_COMPILE,doc-requirements.in)

.PHONY: test_unit_without_flag
test_unit_without_flag:
go test ./... -race -coverprofile=coverage.temp.txt -covermode=atomic
cat coverage.temp.txt | grep -v "_flags.go" > coverage.txt
rm coverage.temp.txt
curl -s https://codecov.io/bash > codecov_bash.sh && bash codecov_bash.sh

0 comments on commit c1d273c

Please sign in to comment.