You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current SDK ci comes with many nice integrity patterns that verify integrity (for example that tests exist for each source file etc) of this SDK repository.
However, these checks are not easy to include as keywords into integrity checks of projects using the SDK because some of these checks are implemented as tests and not keywords.
In order to facilitate reuse of integrity checks, the checks have to be separated into 1. robotframework library that implements the keywords 2. the tests that apply these keywords to this particular repository.
In this way, any external project using this SDK will be able to simply reuse the same keywords in project specific integrity checks.
The text was updated successfully, but these errors were encountered:
## What has been done
- Renamed scrum to integrity
- Added two new reusable integrity libraries that can be included into
projects that use SDK: DirectoryStructure.robot and Tests.robot.
- New file naming pattern: Capitalized = shared libraries, lowercase:
original integrity checks that are kept for now
- Added new variable "INTEGRITY_DIR" that points to the main integrity
folder
## Proof
- No functional changes done, just restructuring/moving of files
External project can now include integrity checks by using INTEGRITY_DIR
variable:
```
*** Settings ***
Library OperatingSystem
Resource ${INTEGRITY_DIR}/infrastructure/DirectoryStructure.robot
*** Test Cases ***
Apps have proper directory structure
Directory has apps structure ${ROOT_DIR}/apps
Samples have proper directory structure
Directory has samples structure ${ROOT_DIR}/samples
Boards have proper directory structure
Directory has boards structure ${ROOT_DIR}/boards
CMake have proper directory structure
Directory has cmake structure ${ROOT_DIR}/cmake
Drivers have proper directory structure
Directory has drivers structure ${ROOT_DIR}/drivers
Lib have proper directory structure
Directory has lib structure ${ROOT_DIR}/lib
Scripts have proper directory structure
Directory has scripts structure ${ROOT_DIR}/scripts
```
## Known issues/limitations
- Other modules still need to be refactored to this structure: one
reusable, the other containing local tests
Related to #13
Signed-off-by: Martin Schröder <info@swedishembedded.com>
Co-authored-by: Martin Schroeder <mkschreder.uk@googlemail.com>
Co-authored-by: Martin Schröder <info@swedishembedded.com>
Current SDK ci comes with many nice integrity patterns that verify integrity (for example that tests exist for each source file etc) of this SDK repository.
However, these checks are not easy to include as keywords into integrity checks of projects using the SDK because some of these checks are implemented as tests and not keywords.
In order to facilitate reuse of integrity checks, the checks have to be separated into 1. robotframework library that implements the keywords 2. the tests that apply these keywords to this particular repository.
In this way, any external project using this SDK will be able to simply reuse the same keywords in project specific integrity checks.
The text was updated successfully, but these errors were encountered: