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

Wanna contribute? Please add the missing tests #1233

Closed
vbrazo opened this issue May 20, 2018 · 10 comments
Closed

Wanna contribute? Please add the missing tests #1233

vbrazo opened this issue May 20, 2018 · 10 comments
Assignees

Comments

@vbrazo
Copy link
Member

vbrazo commented May 20, 2018

If you're just starting to work with Faker, you should read the contributors file.

After setting up the project in your local machine, you should run the tests to find the missing tests.

Take a look at the screenshoot.

screen shot 2018-05-20 at 8 13 16 pm

The goal should be adding tests for the files that have coverage < 100%.

Do you want to be part of the solution?

@vbrazo vbrazo changed the title Wanna contribute? Please add missing tests. Wanna contribute? Please add the missing tests. May 20, 2018
@vbrazo
Copy link
Member Author

vbrazo commented May 20, 2018

I know that there are 3 warnings that are displayed when you run bundle exec rake or simply rake. These warnings are coming from a dependency/gem. I already wrote an issue about it in their repository, and I'm waiting for a response cldwalker/hirb#103.

@vbrazo vbrazo changed the title Wanna contribute? Please add the missing tests. Wanna contribute? Please add the missing tests May 20, 2018
@aamarill
Copy link

@vbrazo I would love to help! Should I be assigned to this to prevent test duplication?

@vbrazo
Copy link
Member Author

vbrazo commented May 21, 2018

You can go ahead and make your changes. Link your PR in this issue so people will see that you're working on it.

@aamarill
Copy link

@vbrazo I am struggling to follow the flow of the tests. Is there any documentation of how the testing works? Or any resources you can point me to? I do apologize for slowing you down and really appreciate any help or insight you can provide 😄

@ZASMan
Copy link
Contributor

ZASMan commented May 22, 2018

@aamarill , take a look at the test folder, such as this one right here.

The tests can be simple. For example, you'll see here they are calling the different methods and asserting that the returned result is a string.

@aamarill
Copy link

aamarill commented May 22, 2018

@ZASMan Thanks for the feedback. 👏

I am trying to play with it a bit (to understand it) by trying to print to the terminal from an arbitrary method (inside one of the test files). But, it seems none of the methods get executed when I run the tests except on the setup method. Hopefully this picture is worth a thousand words 😃

screen shot 2018-05-21 at 7 02 20 pm

edit: better picture.

@stympy
Copy link
Contributor

stympy commented May 22, 2018

Method names must begin with test_ to be executed.

@aamarill
Copy link

aamarill commented May 22, 2018

Thanks @stympy! I just remembered that 😄 I was trying to figure out if they were being run some other way, somehow. Thanks again !!

This was referenced May 22, 2018
@vbrazo
Copy link
Member Author

vbrazo commented May 26, 2018

We have 99.92%. I think we're ok and good to go.

screen shot 2018-05-26 at 6 48 13 pm

@aamarill
Copy link

Impressive skill @vbrazo I wasn't sure on how to test for the last ones you did! 😮 👍

@vbrazo vbrazo self-assigned this May 26, 2018
@vbrazo vbrazo closed this as completed May 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants