Skip to content

docs: add test guidelines#597

Merged
alejandronanez merged 4 commits intomasterfrom
unit-tests-guide
Oct 28, 2017
Merged

docs: add test guidelines#597
alejandronanez merged 4 commits intomasterfrom
unit-tests-guide

Conversation

@alejandronanez
Copy link
Copy Markdown
Member

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

Closes #595

@coveralls
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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