blob: 1ea9a17355ed87793713e81dc0cd519f3fe71479 [file] [log] [blame]
Charles Chanfcfe8902022-02-02 17:06:27 -08001.. SPDX-FileCopyrightText: 2021 Open Networking Foundation <info@opennetworking.org>
2.. SPDX-License-Identifier: Apache-2.0
3
Carmelo Casconed9f49162021-10-07 18:17:20 -07004.. _testing_guide:
5
Charles Chancaebcf32021-09-20 22:17:52 -07006Testing Guide
7=============
8
Charles Chande4eb7b2021-10-07 18:03:00 -07009We 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 Chancaebcf32021-09-20 22:17:52 -070029
30.. toctree::
Charles Chan168670a2021-10-11 19:33:06 -070031 :maxdepth: 2
32 :hidden:
33 :glob:
Charles Chancaebcf32021-09-20 22:17:52 -070034
Charles Chan168670a2021-10-11 19:33:06 -070035 testing/component
36 testing/pipeline
37 testing/system