Test Case Naming and Coding Specifications
Signing the CLA
You need to sign a Contributor License Agreement (CLA) before making contributions.
Test Suite and Test Case Naming
- Test suites must be named uniformly using the name of the test target or the test feature.
- Test cases must be named uniformly using the format
oe_test_short description of testing items_00X. - The mapping between test suites and test cases is defined in the suite-to-cases correspondence.
Test Coding Specifications
1. Copyright and License Statement
-
Contributors must add a copyright notice at the top of the test code, clearly specifying the copyright ownership (e.g., the individual or the employer). The copyright notice format can follow:
Copyright (c) [Year] [name of copyright holder] -
Contributors must also add a license declaration at the top of the test code, clearly specifying the license under which the contributed code is released. Contributors may choose a license compatible with this project's license (Mulan PSL v2). If choosing Mulan PSL v2, the following license declaration can be used as a reference:
This program is licensed under Mulan PSL v2. You can use it according to the terms and conditions of the Mulan PSL v2. http://license.coscl.org.cn/MulanPSL2 THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
2. Code Writing
Please refer to the test case template for code writing.
3. Supported Programming Languages
Currently, both shell and python are supported.