Closed Abnaby closed 6 months ago
Updates
CMake/output/tests
until integrating gcovr tool (will be replaced by gcovr reports)
/workspace/tools/build/CMake/Test/${module_name}/mocks
, ensuring that any cached mock files are ignored.Dependencies:
apt install ruby
I would suggest to use a pre-defined folder structure for the unit tests for example tests/unit to avoid confustion in the future with other testing mechanisms (integration, e2e, ..etc) @autosarzs @Abnaby
This pull request has been closed as the associated branch name has been changed for better alignment with our naming conventions and workflow improvements.
For continued discussion and review, please refer to the new pull request created under the updated branch name: [#96].
Thank you!
Closed in favor of #96
ISSUE-ID: #95
Summary:
Integrating the Unity and CMock frameworks into the project. The goal is to enhance unit testing capabilities by incorporating these frameworks, allowing for better isolation and testing of individual components.
Changes :
/workspace/tools/frameworks/CMock/vendor/unity
tools/frameworks/CMock
to facilitate the generation of mock files for seamless unit testing. configuration at/workspace/tools/build/CMake/cmockConfig.yml
Dependencies:
apt install ruby
How to Test:
git clone -b Integrate_Unity_CMock https://github.com/Abnaby/Dev.git
git submodule init && git submodule update --recursive
cd tools/frameworks/CMock/
git config --global --add safe.directory /workspace/tools/frameworks/CMock
git submodule init && git submodule update --recursive
cd /workspace
make unit_test rebuild=1
Output