Skip to content

Commit f6ce52f

Browse files
authored
Adding additional text around the resr requirement for code contributions to make supplying a test mandatory, except in exceptional situations. (#4713)
1 parent c065004 commit f6ce52f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@ Code changes
1818
===================
1919
We Use Github Flow, So All Code Changes Happen Through Pull Requests. Pull requests are the best way to propose changes to the codebase. We actively welcome your pull requests:
2020

21-
- If you've added code that should be tested, add tests. Ensure the test suite passes.
22-
- Avoid use macros for different platforms. Use separate folder of source files to host different platform logic.
21+
- If you've added / modified code:
22+
- Please provide tests to the test suite to validate the operation of your code, or point to existing test cases which do the same.
23+
- Ensure that your new tests pass. This way we ensure that your contribution continues to work as you expected as future contributions are made by other contributors.
24+
- Ensure all the existing tests in the test suite pass. This way we can verify that your contribution doesn’t accidentally impact other contributions.
25+
- If your contribution is minor and you feel it does not need an additional test case, i.e. updating comments, formatting, simple refactoring, etc. then provide an explanation in your PR comment, i.e. “this is a minor change *explain the change*, and as such [ “is covered by” *list existing test cases* | “is except from addition test contribution”].
26+
- Avoid using macros for different platforms. Use separate folders for source files to collect together different host platform logic.
2327
- Put macro definitions inside share_lib/include/config.h if you have to use macro.
2428
- Make sure your code lints and compliant to our coding style.
2529
- Extend the application library is highly welcome.

0 commit comments

Comments
 (0)