Skip to content

Commit

Permalink
Add ceedling Configuration for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mtalat committed Sep 14, 2022
1 parent b95d193 commit 6730c37
Showing 1 changed file with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
#
# 1NCE IoT C SDK Unit testing Configuration
#

:project:
:use_exceptions: FALSE
:use_test_preprocessor: TRUE
:use_auxiliary_dependencies: TRUE
:build_root: build_tests
:test_file_prefix: unit_test_
:which_ceedling: gem
:ceedling_version: 0.31.1
:default_tasks:
- test:all

:environment:

:extension:
:executable: .out

:paths:
:test:
- +:test/**
:source:
- source/**
:include:
- source/include/**
- source/interface/**
:libraries: []

:defines:
:common: &common_defines []
:test:
- *common_defines
- TEST
:test_preprocess:
- *common_defines
- TEST

:cmock:
:mock_prefix: mock_
:when_no_prototypes: :warn
:enforce_strict_ordering: TRUE
:plugins:
- :ignore
- :callback
:treat_as:
uint8: HEX8
uint16: HEX16
uint32: UINT32
int8: INT8
bool: UINT8

:gcov:
:reports:
- HtmlDetailed
:gcovr:
:html_medium_threshold: 75
:html_high_threshold: 90

:libraries:
:placement: :end
:flag: "-l${1}"
:path_flag: "-L ${1}"
:system: []
:test: []
:release: []

:plugins:
:load_paths:
- "#{Ceedling.load_path}"
:enabled:
- stdout_pretty_tests_report
- module_generator
...

0 comments on commit 6730c37

Please sign in to comment.