Charles Chan | fcfe890 | 2022-02-02 17:06:27 -0800 | [diff] [blame] | 1 | .. SPDX-FileCopyrightText: 2021 Open Networking Foundation <info@opennetworking.org> |
| 2 | .. SPDX-License-Identifier: Apache-2.0 |
| 3 | |
Carmelo Cascone | d9f4916 | 2021-10-07 18:17:20 -0700 | [diff] [blame] | 4 | .. _testing_guide: |
| 5 | |
Charles Chan | caebcf3 | 2021-09-20 22:17:52 -0700 | [diff] [blame] | 6 | Testing Guide |
| 7 | ============= |
| 8 | |
Charles Chan | de4eb7b | 2021-10-07 18:03:00 -0700 | [diff] [blame] | 9 | We implemented multiple types of tests in SD-Fabric. |
| 10 | |
| 11 | - **Unit Test** |
| 12 | |
| 13 | - Verify codes at the level of methods or classes, and therefore covers a lot of details in a small scope. |
| 14 | - Run before merge as part of the CI/CD process of each component. |
| 15 | |
| 16 | - **Component Test** |
| 17 | |
| 18 | - Verify a component with its dependencies as a whole. |
| 19 | - Run as sanity checks before merge as part of the CI/CD process of each component. |
| 20 | |
| 21 | - **System Integration Test** |
| 22 | |
| 23 | - Verify the entire SD-Fabric solution, |
| 24 | involving multiple components and including various failure scenarios. |
| 25 | - Run nightly |
| 26 | |
| 27 | .. image:: images/test-overview.png |
| 28 | :width: 800px |
Charles Chan | caebcf3 | 2021-09-20 22:17:52 -0700 | [diff] [blame] | 29 | |
| 30 | .. toctree:: |
Charles Chan | 168670a | 2021-10-11 19:33:06 -0700 | [diff] [blame] | 31 | :maxdepth: 2 |
| 32 | :hidden: |
| 33 | :glob: |
Charles Chan | caebcf3 | 2021-09-20 22:17:52 -0700 | [diff] [blame] | 34 | |
Charles Chan | 168670a | 2021-10-11 19:33:06 -0700 | [diff] [blame] | 35 | testing/component |
| 36 | testing/pipeline |
| 37 | testing/system |