-
-
Notifications
You must be signed in to change notification settings - Fork 3
(feature): add code coverage #6
(feature): add code coverage #6
Conversation
hey @cgalvarez ! Thank you so much! Great work mate. Yes, actually I know why it fails :) Just haven't managed the time to try to fix this. What is your opinion on this project? Does it converge with your ideas? |
@jccguimaraes Well, still haven't dig into your project. Right now I'm upgrading my fork to the latest available package versions, refactoring code, writing specs, learning MobX... Until finished polishing it, won't take a deeper look into yours. I'll provide my feedback to you as soon as I understand what it does and give it a try, but according to What I try to achieve right now with Since |
BTW, while creating this PR I had to improve |
@cgalvarez that is what OS is all about 👍 learning from each other! |
@jccguimaraes Mocha already supports waiting for promises out-of-the-box by returning them or using the callback I have some methods that perform async tasks without directly returning a promise, so I've created the helper I think this allows a clearer syntax when writing specs. For example: it('should do async task', () => {
myVar.asyncTask();
return waitsForCondition(() => (myVar.asyncFlag === true))
.then(() => {
expect(myVar).to...
});
}); If you think you can benefit of this, or has any other suggestions (I'm not an expert on writing Atom specs), please, let me know and I'll add this helper to |
(feature): add code coverage
Here you have it, @jccguimaraes . This PR adds code coverage to the package through
atom-coverage
.To test locally just:
It should output something like:
BTW, the reason why the CI builds fail is not related with this PR (at least right now), but to tests failing.