autosarzs / Dev

Development AUTOSAR
Mozilla Public License 2.0
52 stars 19 forks source link

Integrate Unity and Cmock with project files #93

Closed Abnaby closed 6 months ago

Abnaby commented 6 months ago

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 :

Dependencies:

How to Test:

  1. git clone -b Integrate_Unity_CMock https://github.com/Abnaby/Dev.git
  2. git submodule init && git submodule update --recursive
  3. cd tools/frameworks/CMock/
  4. git config --global --add safe.directory /workspace/tools/frameworks/CMock
  5. git submodule init && git submodule update --recursive
  6. cd /workspace
  7. make unit_test rebuild=1

    Output

    image

Abnaby commented 6 months ago

Updates

Dependencies:

mr0xc0der commented 6 months ago

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

Abnaby commented 6 months ago

Note

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