ThrowTheSwitch / Ceedling

Ruby-based unit testing and build system for C projects

Home Page:http://throwtheswitch.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when installing (upgrading) existing (non ceedling) project

automat01 opened this issue · comments

First of all, this is my first post on github.

We use many existing projects on which we wish to add unit tests using ceedling. our approach is to add the required files manually (files that are normally generated by ceedling using new). But we have an annoying issue if the project_x/test/support folder does not exist.
In some case we need to have tests in a custom folder. I have found on my ceedling 0.31.1 instance this annoying line:

# Genarate gitkeep in test support path
        FileUtils.touch(File.join(test_support_path, '.gitkeep'))

where test_support_path is hardcoded as test_support_path = File.join(name, 'test/support') a few lines above.

Why is the script failing when it can't touch this?
If it is absolutely necessary, is there a possibility to make this a part of the yml configuration? I don't think ceedling need to hardcode the test/ folder. tests can be anywhere as per the project.yml file.