FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Queryology/src/codeclimate_code_coverage.sh at master · ByteDecoder/Queryology · GitHub
ByteDecoder
Queryology
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Queryology
/
src
/
codeclimate_code_coverage.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
17 lines (13 loc) · 813 Bytes
Breadcrumbs
Queryology
/
src
/
codeclimate_code_coverage.sh
Copy path
File metadata and controls
executable file
·
17 lines (13 loc) · 813 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
Download codeclimate test reporter
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
>
./codeclimate-test-reporter
chmod +x ./codeclimate-test-reporter
#
Install dotnet tools to generate test report
#
dotnet tool install --global coverlet.console
#
dotnet add package coverlet.msbuild
#
Start codeclimate process
./codeclimate-test-reporter before-build
#
Running unit tests - 'lcov' output format (and put coverage in correct path)
dotnet
test
/p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=../coverage/lcov --no-restore --verbosity normal
#
cmkdir coverage && mv ./Queryology.Tests/coverage.info coverage/lcov.info
#
Send test report result to codeclimate
./codeclimate-test-reporter after-build -t lcov -r
${CC_TEST_REPORTER_ID}
--exit-code
$?
Back
|
FazBrowse Home
|
New Git URL