I am trying to write unit tests for files present inside the pmk folder of this project: https://github.com/air-gmv/air/tree/master/air, but I’m having trouble getting mocks to work correctly. My mocks aren’t being generated, and I keep getting errors stating that files weren’t found.
I expected Ceedling to generate a mock file mock_pmk.h, but this is not happening.
In my test file test_pmk_core_error.c, I include the mock like this:
#include "mock_pmk.h"
However, when I run the tests, I receive an error saying the file cannot be found. Am I missing something in my configuration or project structure? What could be causing the file not found error?
Configuration (project.yml):
:paths:
:test:
- +:test/**
- -:test/support
:source:
- +:/home/gmv/air-dev/air/pmk/core/**
- -:/home/gmv/air-dev/air/pmk/core/include/**
:support:
- test/support
:libraries: []
:include:
- stubs
- /home/gmv/air-dev/air/pmk/core/include
:files:
:include:
- +:/home/gmv/air-dev/air/pmk/core/include/**
Joana Inverno is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.