Generate slather/Coveralls test coverage stats#434
Generate slather/Coveralls test coverage stats#434appleguy merged 8 commits intofacebookarchive:masterfrom dasmer:master
Conversation
|
Looks like a legitimate build failure in https://travis-ci.org/facebook/AsyncDisplayKit/jobs/59346360, at the "Link Life Without CocoaPods" step: I think I've seen this stack trace before, it may have been when |
…S in Life Without CocoaPods.xcodeproj
|
@modocache Yep I missed |
|
@dasmer I've enabled Coveralls for facebook/AsyncDisplayKit. If you add a commit to this that adds a badge to the README, that'll kick off the Travis build and we can make sure the metrics are sent to https://coveralls.io/r/facebook/AsyncDisplayKit. 🙇 |
|
@modocache Done. Looks like metrics are being sent 📫 |
|
@dasmer & @modocache, thanks for collaborating on this :). I haven't used these tools before, and while the data they provide is certainly an interesting new metric to track and drive, my primary concern is added complication to the build system. Are you willing to support this if issues arise? On test coverage, I'm glad to see tests included in many external PRs and think that coverage could be improved significantly with a focused effort to write tests for "ASDK 1.0" code. I have a few other issues that are higher priority for my ASDK time, but would be excited to review an merge any test-focused diffs! |
|
I'm going to take the leap with you, guys. This tool seems pretty cool—I just got time to sign up for an account. I would love to see test coverage increase in ASDK. If we can get this into a merge-able state, I'll take the diff as soon as I see it :) |
|
We've continued to make progress on increasing code coverage with the new snapshot tests for layout and expanded ASTableView and ASCollectionView testing, with more to come! @dasmer, @modocache do you have time to fix the likely-minor merge conflicts here? I'm not familiar with the proper setup or testing procedures here, but would like to get this closed out. |
|
@appleguy I just merged master and it looks like coverage has increased by ~14%. |
|
@appleguy Does anything else need to be done here before merge? |
|
@dasmer so sorry I fell behind on this — I started "visually ignoring" the PR as one that was stalled, but you had actually replied to my second comment! Email notifications weren't working for me at the time, and it's really stupid that the GitHub website's PR page doesn't clearly highlight PRs with unread comments. I would love to merge this, and in fact, would find it exceptionally useful if we could make it happen in the next 12-24hrs...In about 25hrs I'll be onstage at NSSpain talking about ASDK 2.0, and wanted to make a point about the importance of unit testing & value of community members who have been adding tests + test infrastructure. Right now it's not merging cleanly. If you can fix that, I'll merge it as soon as I see it (GMT time zone). If you want to do another re-sync with your repository, I'd be curious to see the current coverage, which I suspect is incrementally higher. |
|
@appleguy No worries. I merged master. It looks like a test is failing now, although it seems unrelated. Maybe try re-running tests? |
|
Sweet! Yeah, Travis is such a disappointment. Re-running now. |
|
Seems like the failing test is the one I've just added. I will take a look at it later on. If it isn't wrong then it's unstable. And neither case is acceptable. |
|
Looks like tests are still failing. Please let me know if there's anything I can do to help! |
|
Tests are not only failing in this PR but all of others. I submitted #661 to disable the buggy test. It doesn't fail locally, at least for me. I will debug it early next week. But if you can do that before me, please do. Thanks :) |
|
Green lights. Good to go 👯 👯 👯 |
Generate slather/Coveralls test coverage stats
|
Hooray!! Super cool :) |
|
Because not all builds run the tests, the overall number is confused (sometimes showing 0%), but it seems to be working if you dig a little bit deeper. Great tool! |
cc: @modocache (https://twitter.com/modocache/status/590236557933678592)
Coveralls will need to enabled for facebook/AsyncDisplayKit. It's already enabled for dasmer/AsyncDisplayKit, and shows a coverage of 44%.