Skip to content

docs: add test guidelines #597

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

Merged
merged 4 commits into from
Oct 28, 2017
Merged

docs: add test guidelines #597

merged 4 commits into from
Oct 28, 2017

Conversation

alejandronanez
Copy link
Member

Add TEST guidelines. Let me know what do you think.

Closes #595

@coveralls
Copy link

Coverage Status

Coverage remained the same at 37.192% when pulling b30d9ca on unit-tests-guide into 6780754 on master.

TESTS.md Outdated
@@ -0,0 +1,84 @@
# Guidelines about how to write your unit tests for Gitpoint
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep the title short. Maybe just Test Guidelines?

TESTS.md Outdated

it('should not render the Bar component when isOpen is falsy', () => { ... });

it('should return 'the NAME' when foo received \'name\' as a param', () => { ... });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either ... return \'the NAME\' ... or use double quotes and get rid of the backslashes for ... \'name\' ...

@coveralls
Copy link

Coverage Status

Coverage remained the same at 37.192% when pulling 5dc9cf2 on unit-tests-guide into 6780754 on master.

TESTS.md Outdated
@@ -0,0 +1,84 @@
# Test guidlines
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny typo: should be "Guidelines". Let's also use title case here (capital "G").

@coveralls
Copy link

Coverage Status

Coverage remained the same at 37.192% when pulling a5e9583 on unit-tests-guide into 6780754 on master.

@alejandronanez alejandronanez merged commit 0c0a163 into master Oct 28, 2017
@alejandronanez alejandronanez deleted the unit-tests-guide branch October 28, 2017 21:58
@housseindjirdeh
Copy link
Member

Oh man thank you @alejandronanez, this was really needed <3

@jjlljj jjlljj mentioned this pull request Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants