ThrowTheSwitch / CMock

CMock - Mock/stub generator for C
http://throwtheswitch.org
MIT License
686 stars 276 forks source link

gcov option not working #409

Closed pronoy136 closed 2 years ago

pronoy136 commented 2 years ago

I am new to the ceedling environment, I created a project and tried to enable gcov within Project.yml file but got following error on cmd while execution "ceedling test:all" command

<internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in require': cannot load such file -- C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/lib/cmock_generator_plugin_gcov.rb (LoadError) from <internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:inrequire' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/lib/cmock_plugin_manager.rb:42:in load_plugin' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/lib/cmock_plugin_manager.rb:16:inblock (2 levels) in initialize' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/lib/cmock_plugin_manager.rb:16:in synchronize' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/lib/cmock_plugin_manager.rb:16:inblock in initialize' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/lib/cmock_plugin_manager.rb:13:in each' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/lib/cmock_plugin_manager.rb:13:ininitialize' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/lib/cmock.rb:23:in new' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/lib/cmock.rb:23:ininitialize' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/lib/ceedling/cmock_builder.rb:12:in new' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/lib/ceedling/cmock_builder.rb:12:inmanufacture' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/lib/ceedling/configurator.rb:120:in populate_cmock_defaults' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/lib/ceedling/setupinator.rb:25:indo_setup' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/lib/ceedling/rakefile.rb:47:in <top (required)>' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/lib/ceedling.rb:66:inload' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/lib/ceedling.rb:66:in load_project' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/bin/ceedling:329:in<top (required)>' from C:/Ruby30-x64/bin/ceedling:25:in load' from C:/Ruby30-x64/bin/ceedling:25:in

'

It is unable to find "cmock_generator_plugin_gcov.rb" and it seems that on the repository page I was unable to find this plugin file within the "lib" folder.

Please provide help regarding same.

pronoy136 commented 2 years ago

was puting - gcov option in wrong location