Skip to content
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

Write unit tests #15

Open
5 tasks
jamesgeorge007 opened this issue Oct 1, 2019 · 4 comments
Open
5 tasks

Write unit tests #15

jamesgeorge007 opened this issue Oct 1, 2019 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@jamesgeorge007
Copy link
Member

jamesgeorge007 commented Oct 1, 2019

As of now, we're missing out on unit tests which is extremely important.
We're using avajs as the test runner.

  • teachcode init (@Ian-Yy)
  • teachcode submit
  • teachcode fetchtask <key>
  • teachcode showkeys
  • teachcode showcommands
@jamesgeorge007 jamesgeorge007 added help wanted Extra attention is needed Hacktoberfest labels Oct 1, 2019
@ong-yy
Copy link

ong-yy commented Oct 6, 2019

Hi @jamesgeorge007 , I would like to try writing unit test for this

@jamesgeorge007
Copy link
Member Author

@Ian-Yy sure, feel free to shoot up a PR 👍
First of all, pick up a command that you would like to work with.

@ong-yy
Copy link

ong-yy commented Oct 9, 2019

@jamesgeorge007 I would like to do teachcode init first ya =)

@ong-yy
Copy link

ong-yy commented Oct 14, 2019

Hi @jamesgeorge007 , I've went through the code in init.js and Ava documentation but I'm really confused on how should I begin writing a Unit Test for this teachcode init. There's multiple parts that I don't know how to unit test such as inquire user to input their learning choice, name and Github username, on the creation/cloning of repository, and if the directories is already created.

Can you please provide some guide or how I should be actually writing the unit test for teachcode init. Really sorry, I'm still quite beginner in writing Unit Test. 🙏

@jamesgeorge007 jamesgeorge007 added this to the v1.3.0 milestone Jan 12, 2020
@jamesgeorge007 jamesgeorge007 removed this from the v1.3.0 milestone Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants