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

[IMP] CONTRIBUTING.rst: Improve testing flow for external API calls #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions website/Contribution/CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,12 @@ test cases.
you should name it ``module_name_example`` (ie: `cms_form` and `cms_form_example`).
In this way coverage analysis will ignore this extra module by default.

The tests you write should not interfere with other modules behavior nor the
testing infrastructure. e.g.: Don't test an external API directly as it will
depends on that API reliability. The best is to mock the call or to simulate
the expected response. If you really want to do it, the best is to ask for a
separate repository for your module.

Investigating Travis Test Failures
==================================

Expand Down