Skip to content

Commit

Permalink
rename coverage.txt to coverage.out
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Jul 1, 2021
1 parent 90948a3 commit 52c3253
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ Learn the [basics](https://blog.golang.org/cover) first.
To visually see the coverage report you can run something like this:

```bash
go test -coverprofile=coverage.txt ./...
go tool cover -html=coverage.txt
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out
```

It will open a web page to tell you which line is not covered.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- run: go generate

- run: go test -race -coverprofile=coverage.txt ./...
- run: go test -race -coverprofile=coverage.out ./...

- run: go run ./lib/utils/check-cov

Expand All @@ -34,4 +34,4 @@ jobs:
name: cdp-log-linux
path: |
tmp/cdp-log
coverage.txt
coverage.out
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tmp/

.git
.dockerignore
coverage.txt
*.out
rod.test
.golangci.yml
package-lock.json
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/check-cov/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

func main() {
err := got.EnsureCoverage("coverage.txt", 100)
err := got.EnsureCoverage("coverage.out", 100)
if err != nil {
fmt.Println(err)
os.Exit(1)
Expand Down
4 changes: 2 additions & 2 deletions lib/utils/simple-check/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ func main() {
utils.ExecLine("go install github.com/ysmood/golangci-lint@latest")
utils.ExecLine("golangci-lint")

utils.ExecLine("go test -coverprofile=coverage.txt ./lib/launcher")
utils.ExecLine("go test -coverprofile=coverage.out ./lib/launcher")
utils.ExecLine("go run ./lib/utils/check-cov")

utils.ExecLine("go test -coverprofile=coverage.txt")
utils.ExecLine("go test -coverprofile=coverage.out")
utils.ExecLine("go run ./lib/utils/check-cov")
}

0 comments on commit 52c3253

Please sign in to comment.