Skip to content

Commit 1223d2f

Browse files
committed
adding output for logging of tests
1 parent 99aed89 commit 1223d2f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- name: Runing tests for coverage
2020
run: |
21-
go test -race -coverprofile=coverage.out -covermode=atomic `go list ./... | grep -v vendor/`
21+
go test -race -coverprofile=coverage.out -covermode=atomic `go list ./... | grep -v vendor/` -v
2222
2323
- name: Uploading coverage to Codecov
2424
uses: codecov/codecov-action@v3

src/webserver_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ func TestFakeToUpCodeCoverage(t *testing.T) {
3232
assert := assert.New(t)
3333

3434
tibiaCharactersCharacterV3(c)
35+
// writing to log for debugging
36+
t.Log(w)
3537
assert.Equal(http.StatusOK, w.Code)
3638

3739
w = httptest.NewRecorder()
@@ -51,6 +53,8 @@ func TestFakeToUpCodeCoverage(t *testing.T) {
5153
}
5254

5355
tibiaCreaturesCreatureV3(c)
56+
// writing to log for debugging
57+
t.Log(w)
5458
assert.Equal(http.StatusOK, w.Code)
5559

5660
w = httptest.NewRecorder()
@@ -70,6 +74,8 @@ func TestFakeToUpCodeCoverage(t *testing.T) {
7074
}
7175

7276
tibiaGuildsGuildV3(c)
77+
// writing to log for debugging
78+
t.Log(w)
7379
assert.Equal(http.StatusOK, w.Code)
7480

7581
w = httptest.NewRecorder()

0 commit comments

Comments
 (0)