good-first-issue icon indicating copy to clipboard operation
good-first-issue copied to clipboard

Add tests

Open bnb opened this issue 5 years ago • 18 comments

The module is currently lacking tests. This is something that is 100% needed but also something I'm entirely unfamiliar with. Would 💚 some help on this!

Tasks:

  • [ ] good-first-issue -o exits appropriately
  • [ ] log returns a properly formatted output without any undefined (the repo name is especially tricky!)
  • [ ] `require('good-first-issue') operates and returns an object with the correct shape, as expected

Contributors: Feel free to add items to this list!

bnb avatar Nov 05 '18 04:11 bnb

We're now using Jest!

Some needed tests:

  • good-first-issue <project> -o exits appropriately
  • log returns a properly formatted output without any undefined (the repo name is especially tricky!)
  • `require('good-first-issue') operates and returns an object with the correct shape, as expected

bnb avatar Nov 17 '18 22:11 bnb

@bnb can we add task lists? I've few comments over the first task. I doubt if it can be tested. I've raised a question on that repo: https://github.com/sindresorhus/opn/issues/109

hemal7735 avatar Nov 22 '18 14:11 hemal7735

@hemal7735 I believe it may be on our end rather than opn's end – I less care about checking that the issue actually opened in a browser and more care that when passing the -o flag, the CLI actually exits.

Context: For a while, we weren't exiting and the CLI would continue running without actually doing anything, forcing the user to CMD + C to get out of it.

bnb avatar Nov 22 '18 19:11 bnb

@hemal7735 and yes, feel free to add tasks!

bnb avatar Nov 22 '18 19:11 bnb

@bnb yup, checking the process - exit code is doable. Thanks for the clarification. Tricky part is to reproduce the issue.

hemal7735 avatar Nov 23 '18 05:11 hemal7735

I believe it was solved with https://github.com/bnb/good-first-issue/commit/3cfb8e67c1ab0f2d7801952cfffeb0a710447567 but I'd always like to maintain a check that it's exiting correctly 😬

bnb avatar Nov 23 '18 16:11 bnb

I would like to contribute to this issue.

engFelipeMonteiro avatar Oct 25 '19 14:10 engFelipeMonteiro

anything happened so far with this issue? has this been resolved?

alexanderbrown21 avatar Jan 22 '20 12:01 alexanderbrown21

Hey @bnb

Is this still open? I would like to contribute. :)

iamtabrezkhan avatar Jun 10 '20 22:06 iamtabrezkhan

@iamtabrezkhan feel free - there may have been some things done but improvements/enhancements always welcome.

bnb avatar Jun 12 '20 00:06 bnb

Hi, Im new at github and my experience qith code is from the last 2 years with some months of innactivity in between.

Is there any task I could do or somethings I need to learn if I only have a small experience in Js, Ruby, Java, C++, Python?

carlosserretquerol avatar Oct 09 '20 20:10 carlosserretquerol

@carlosdeque-s feel free to poke around and try things out. Use the project, if you have an idea about how it could be better create an issue and I'll share feedback on it. If it's an affirmative, go ahead and start working on a PR - I can at the very least give you pointers in the right direction.

bnb avatar Oct 12 '20 17:10 bnb

hey @bnb Is this still a on going project ? The project seems really interesting.

zootechdrum avatar Dec 12 '20 05:12 zootechdrum

@zootechdrum I don't actively work on it at this point for no reason other than I have other things I focus on. I could work on it; also happy to work with others to enable them to get improvements and additions shipped and eventually become a maintainer.

bnb avatar Jan 12 '21 20:01 bnb

هاي

ka1994ka avatar Jun 22 '22 00:06 ka1994ka

!assign

yabhinavy avatar Oct 14 '22 19:10 yabhinavy

Hey everyone, I was wondering to get started with open source contribution. I'm an amateur in Python, OCaml, Javascript, HTML and CSS. Can anyone please explain how I can start working on this??

adityashibu avatar Dec 24 '23 12:12 adityashibu

Hii everyone, I want to start open-source contribution. My skills are React, react native and I can also build basic backend for the applications. How can I start and continue open-source contribution?

AravindKVishwanath avatar Jan 06 '24 10:01 AravindKVishwanath