AppVeyor is Continous Integration and Deployment solution where you can build, test and deploy your apps faster to any platform. One good advantage of using appveyor is that it is free for Open Source repositories. It's actually good when your repo is accepting pull request from people and then you can test if the pull request is merging or not. On the other hand, Codec helps you to do a health check on your code, i.e. it is a measurement on how many lines of your code are executed when automated tests are performing. Now 100% Code Coverage means that all your code is covered under tests, but that is very hard to achieve. I have to do a lot of commits to test the AppVeyor and Codecov and at last, it iwas successful and I can build and generate a code coverage report for my application. At first, I have started using NuGet package OpenCover to create code-coverage in my local environment and it was working after trial and error method. The Script I have used is as below ``` OpenCover.Console.exe -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test\LetsDisc.Tests\bin\Debug\netcoreapp2.1\LetsDisc.Tests.dll -noshadow" -oldStyle -output:".\coverage.xml" -filter:"+[LetsDisc*]* -[Tests*]*" -coverbytest:"XUnit" ``` ---- But as a developer, we should know that what works in local has a 100% probability that it will not work in some other environments. That is what happened in my case when I tried to run the above script in AppVeyor some or the other issues are popping up. But at last, I made it work. So the final script is ``` version: 1.0.{build} image: Visual Studio 2017 configuration: Release skip_tags: true before_build: - nuget restore - nuget install OpenCover -OutputDirectory packages -Version 4.6.519 build_script: - msbuild /verbosity:quiet LetsDisc.sln test_script: - .\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -target:"C:/Program Files/dotnet/dotnet.exe" -targetargs:"test --logger:trx;LogFileName=results.trx /p:DebugType=full C:\projects\letsdisc\test\LetsDisc.Tests\LetsDisc.Tests.csproj" -output:"coverage.xml" -filter:"+[LetsDisc*]* -[Tests*]*" after_test: - ps: | $env:PATH = 'C:\msys64\usr\bin;' + $env:PATH Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh bash codecov.sh -f "coverage.xml" ``` ---- The above script means on every build I will be updating it with a version of 1.0.{buildNumber}, then use Visual Studio 2017 as an image to build the project, then use configuration as release mode and not debug so that it can be easily deployable. Before the build just restoring all the nuget package, as well as installing OpenCover specific version which works with AppVeyor. After that building the project using msbuild and then running my test script to run the tests and create the coverage report. After the test is scuccessful deploying the coverage.xml file to the Codecov website. It was fun as well as a learning experiment where I learned to use an Appveyor app as well adding the Coverage report to my project. Repo : https://github.com/codingdefined/LetsDisc ---- #### Also Published to My Personal Blog: https://www.codingdefined.com/2018/10/how-i-added-appveyor-codecov-to-net.html
post_id | 64,352,162 |
---|---|
author | codingdefined |
permlink | how-i-added-appveyor-codecov-to-net-core-open-source-project |
category | blog |
json_metadata | {"links":["https:\/\/github.com\/codingdefined\/LetsDisc","https:\/\/www.codingdefined.com\/2018\/10\/how-i-added-appveyor-codecov-to-net.html"],"format":"markdown","tags":["blog","india","developer","programming","opensource"],"app":"steemit\/0.1"} |
created | 2018-10-16 12:48:57 |
last_update | 2018-10-16 12:48:57 |
depth | 0 |
children | 3 |
net_rshares | 3,608,561,758,532 |
last_payout | 2018-10-23 12:48:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 3.454 SBD |
curator_payout_value | 1.100 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 3,259 |
author_reputation | 71,157,752,447,147 |
root_title | "How I added AppVeyor, Codecov to .Net Core Open Source Project" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
malay11 | 0 | 1,306,111,827 | 50% | ||
bsameep | 0 | 7,221,654,289 | 100% | ||
mirhimayun | 0 | 242,232,158 | 20% | ||
hardikv | 0 | 25,462,306,291 | 100% | ||
muziclub | 0 | 320,004,207 | 50% | ||
coolbuddy | 0 | 568,689,800 | 15% | ||
salim001 | 0 | 218,335,300 | 50% | ||
boontjie | 0 | 1,522,737,939 | 100% | ||
skpjr001 | 0 | 1,860,754,510 | 50% | ||
vipinkumarvkrose | 0 | 74,237,024 | 50% | ||
upme | 0 | 3,276,853,934,258 | 5.25% | ||
luxbet | 0 | 7,710,713,306 | 4% | ||
vishalsingh4997 | 0 | 1,355,351,172 | 33% | ||
jatinhota | 0 | 7,249,882,723 | 10% | ||
lifecruiser | 0 | 3,730,653,748 | 50% | ||
inuke | 0 | 6,292,873,198 | 100% | ||
sayed53 | 0 | 275,838,853 | 50% | ||
bobinson | 0 | 5,695,765,422 | 50% | ||
singhrajat | 0 | 2,324,685,123 | 10% | ||
goel.tarun | 0 | 302,618,060 | 2.5% | ||
vishire | 0 | 179,932,943 | 20% | ||
silenteyes | 0 | 2,075,633,296 | 50% | ||
chrisrecord | 0 | 71,740,973 | 50% | ||
v007007007 | 0 | 462,727,481 | 50% | ||
thirumurugan | 0 | 71,444,302 | 20% | ||
chullbull | 0 | 233,203,274 | 50% | ||
shonyishere | 0 | 3,631,140,245 | 72% | ||
akashs | 0 | 556,343,454 | 100% | ||
rojinstha13 | 0 | 93,946,920 | 25% | ||
frames | 0 | 638,589,583 | 25% | ||
guardianofsteem | 0 | 225,546,271 | 50% | ||
casualwriter | 0 | 252,900,448 | 50% | ||
adityajainxds | 0 | 180,213,851 | 10% | ||
premdasmunna | 0 | 253,533,801 | 50% | ||
ajai | 0 | 579,479,731 | 100% | ||
sandeepkhanp | 0 | 253,873,388 | 50% | ||
indiaunited | 0 | 65,110,969,099 | 100% | ||
azadrajput121 | 0 | 101,402,580 | 25% | ||
peopleofthenight | 0 | 253,342,736 | 50% | ||
mshahabi | 0 | 109,331,480,400 | 20.58% | ||
mrsatish | 0 | 253,499,986 | 50% | ||
sillentkiller | 0 | 255,560,620 | 50% | ||
blog-beginner | 0 | 2,825,214,066 | 50% | ||
naveenboktapa | 0 | 252,840,308 | 50% | ||
lavkesh | 0 | 252,900,448 | 50% | ||
kingsman2 | 0 | 251,589,607 | 50% | ||
shivamraichura | 0 | 101,450,224 | 25% | ||
bhattg | 0 | 314,859,258 | 60% | ||
kriptoman | 0 | 252,900,448 | 50% | ||
vineethvs | 0 | 253,784,270 | 50% | ||
mutiahanum | 0 | 403,535,516 | 50% | ||
saystraight | 0 | 556,550,373 | 100% | ||
ayushthedreamer | 0 | 966,405,668 | 50% | ||
mahmuliadi | 0 | 362,759,212 | 100% | ||
rv15 | 0 | 557,894,756 | 100% | ||
shahaan | 0 | 3,201,018,885 | 50% | ||
mchandra | 0 | 1,175,931,806 | 5% | ||
arv1 | 0 | 0 | 3% | ||
raka | 0 | 254,306,008 | 50% | ||
bittrex12 | 0 | 137,711,058 | 50% | ||
zcool | 0 | 187,886,755 | 10% | ||
rzs | 0 | 586,274,494 | 50% | ||
ramadhanil | 0 | 168,971,848 | 50% | ||
hrisheekrayb | 0 | 252,900,448 | 50% | ||
qurator-tier-0 | 0 | 3,962,457,339 | 2.5% | ||
rainbowbala | 0 | 531,374,463 | 100% | ||
kolossus | 0 | 101,585,864 | 25% | ||
beshooo | 0 | 97,340,840 | 25% | ||
maujmasti | 0 | 642,292,508 | 100% | ||
humash604 | 0 | 194,286,679 | 50% | ||
cule | 0 | 72,571,446 | 100% | ||
ragavee | 0 | 231,127,360 | 50% | ||
barbadossobot | 0 | 1,575,230,649 | 2.8% | ||
indiaunited-bot | 0 | 8,535,167,195 | 100% | ||
illusions16 | 0 | 252,900,448 | 50% | ||
rajivv203 | 0 | 253,810,476 | 50% | ||
princejain123 | 0 | 231,311,337 | 50% | ||
sbi8 | 0 | 7,980,452,079 | 4% | ||
steem-ua | 0 | 32,920,250,719 | 0.27% | ||
ilovecoding | 0 | 785,663,626 | 10% | ||
votes4minnows | 0 | 749,562,781 | 4% | ||
neolinkhati | 0 | 366,008,559 | 100% | ||
kele88 | 0 | 104,794,118 | 100% |
Hello! Your post has been resteemed and upvoted by @ilovecoding because **we love coding**! Keep up good work! Consider upvoting this comment to support the @ilovecoding and increase your future rewards! ^_^ Steem On! ![](https://codingforspeed.com/images/i-love-coding.jpg) *Reply !stop to disable the comment. Thanks!*
post_id | 64,352,170 |
---|---|
author | ilovecoding |
permlink | 20181016t124908859z |
category | blog |
json_metadata | {"tags":["ilovecoding"],"app":"ilovecoding"} |
created | 2018-10-16 12:49:09 |
last_update | 2018-10-16 12:49:09 |
depth | 1 |
children | 0 |
net_rshares | 367,004,701 |
last_payout | 2018-10-23 12:49:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 323 |
author_reputation | 40,842,386,526 |
root_title | "How I added AppVeyor, Codecov to .Net Core Open Source Project" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ilovecoding | 0 | 367,004,701 | 5% |
This post has been rewarded with 100% upvote from @indiaunited-bot community account. We are happy to have you as one of the valuable member of the community. If you would like to delegate to @IndiaUnited you can do so by clicking on the following links: [5SP](https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=indiaunited&vesting_shares=10243.049665%20VESTS), [10SP](https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=indiaunited&vesting_shares=20486.098277%20VESTS), [15SP](https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=indiaunited&vesting_shares=30729.146205%20VESTS), [20SP](https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=indiaunited&vesting_shares=40972.193747%20VESTS) [25SP](https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=indiaunited&vesting_shares=51220.989954%20VESTS), [50SP](https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=indiaunited&vesting_shares=102441.979908%20VESTS), [100SP](https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=indiaunited&vesting_shares=204883.959817%20VESTS), [250SP](https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=indiaunited&vesting_shares=512209.899542%20VESTS). Be sure to leave at least 50SP undelegated on your account. <center>[![](https://steemitimages.com/DQmYB5reyMkG1qziLQM3uKSVzMu6XkJvPmtRrbJafytAH2X/image.png)](https://discord.gg/8AqN2Qt)</center> **Please contribute to the community by upvoting this comment and posts made by @indiaunited.**
post_id | 64,352,661 |
---|---|
author | indiaunited |
permlink | indiaunited-1539694712920 |
category | blog |
json_metadata | {"tags":["indiaunited"]} |
created | 2018-10-16 12:58:33 |
last_update | 2018-10-16 12:58:33 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-10-23 12:58:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 1,620 |
author_reputation | 363,078,054,770 |
root_title | "How I added AppVeyor, Codecov to .Net Core Open Source Project" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
#### Hi @codingdefined! Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation! Your **UA** account score is currently 5.111 which ranks you at **#931** across all Steem accounts. Your rank has improved 1 places in the last three days (old rank 932). In our last Algorithmic Curation Round, consisting of 516 contributions, your post is ranked at **#501**. ##### Evaluation of your UA score: * You've built up a nice network. * The readers like your work! * Try to work on user engagement: the more people that interact with you via the comments, the higher your UA score! **Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
post_id | 64,458,408 |
---|---|
author | steem-ua |
permlink | re-how-i-added-appveyor-codecov-to-net-core-open-source-project-20181018t055842z |
category | blog |
json_metadata | {"app":"beem\/0.20.7"} |
created | 2018-10-18 05:58:42 |
last_update | 2018-10-18 05:58:42 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-10-25 05:58:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 705 |
author_reputation | 23,203,609,903,979 |
root_title | "How I added AppVeyor, Codecov to .Net Core Open Source Project" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |