-
-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more tests #29
Comments
As I mentioned in #36 probably need a mock project, otherwise, you will always get a "Not on |
Here is one way to do this tests... assuming you have a clean mock project at (note
|
Might be easier to mock execa?! |
I think we should start by exposing the tasks functions, and testing them individually. For all the git stuff, you can just clone from one directory to another ( When it comes to the Travis and AppVeyor stuff, maybe people just need to fork For actually publishing to |
@jamestalmage Agreed.
I can just add anyone that wants to work on it.
Mocking is enough. We don't need to publish as that's already tested by npm. |
@issuehuntfest has funded $80.00 to this issue. See it on IssueHunt |
@sindresorhus I created #381, #383 and #384 (see #354 (comment)). I tried to avoid creating issues that have a scope that is too wide, but if you think we should change something feel free to update the issues (#383 may be a bit too big as it requires many (small) tests). As those get resolved we can create more tests issues, depending on how things go. |
@sindresorhus Would you mind setting up coverage report? Like codecov.io or coveralls. |
We can add |
@sindresorhus has rewarded $72.00 to @tommy-mitchell. See it on IssueHunt
|
I want to write more tests but testing this library is a little bit tricky. I see two options here.
execa
callssindre-playground
and runnp
The first one doesn't really feel quite ok. Option number 2 looks much better but will create a lot of releases and noise.
Any other suggestions for adding more tests?
IssueHunt Summary
tommy-mitchell has been rewarded.
Backers (Total: $80.00)
Submitted pull Requests
Tips
The text was updated successfully, but these errors were encountered: