Skip to content

Commit

Permalink
fix: rename coverage file
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Oct 15, 2024
1 parent 7e0f11c commit 686b1b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ tests:
SET goFlags="$goFlags,github.com/formancehq/ledger/pkg/accounts/..."
SET goFlags="$goFlags,github.com/formancehq/ledger/pkg/assets/..."
SET goFlags="$goFlags,github.com/formancehq/ledger/cmd/..."
SET goFlags="$goFlags -coverprofile cover.out"
SET goFlags="$goFlags -coverprofile coverage.txt"
END

IF [ "$includeIntegrationTests" = "true" ]
Expand All @@ -88,9 +88,9 @@ tests:
IF [ "$coverage" = "true" ]
# as special case, exclude files suffixed by debug.go
# toremovelater: exclude machine code as it will be updated soon
RUN cat cover.out | grep -v debug.go | grep -v "/machine/" > cover2.out
RUN mv cover2.out cover.out
SAVE ARTIFACT cover.out AS LOCAL cover.out
RUN cat coverage.txt | grep -v debug.go | grep -v "/machine/" > coverage2.txt
RUN mv coverage2.txt coverage.txt
SAVE ARTIFACT coverage.txt AS LOCAL coverage.txt
END

deploy:
Expand Down

0 comments on commit 686b1b0

Please sign in to comment.