fix trailing space and new line
temporarily disable codespell
This commit is contained in:
@@ -5,7 +5,7 @@ ceedling-bullseye
|
||||
|
||||
Plugin for integrating Bullseye code coverage tool into Ceedling projects.
|
||||
This plugin requires a working license to Bullseye code coverage tools. The tools
|
||||
must be within the path or the path should be added to the environment in the
|
||||
must be within the path or the path should be added to the environment in the
|
||||
`project.yml file`.
|
||||
|
||||
## Configuration
|
||||
|
||||
@@ -12,4 +12,3 @@ BRANCHES: <%=sprintf(format_string, hash[:coverage][:branches])%>%
|
||||
% else
|
||||
BRANCHES: none
|
||||
% end
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ class Bullseye < Plugin
|
||||
@ceedling[:plugin_manager].pre_compile_execute(arg_hash)
|
||||
|
||||
@ceedling[:streaminator].stdout_puts("Compiling #{File.basename(source)} with coverage...")
|
||||
compile_command =
|
||||
compile_command =
|
||||
@ceedling[:tool_executor].build_command_line(
|
||||
TOOLS_BULLSEYE_COMPILER,
|
||||
@ceedling[:flaginator].flag_down( OPERATION_COMPILE_SYM, BULLSEYE_SYM, source ),
|
||||
@@ -48,14 +48,14 @@ class Bullseye < Plugin
|
||||
coverage_command = @ceedling[:tool_executor].build_command_line(TOOLS_BULLSEYE_INSTRUMENTATION, [], compile_command[:line] )
|
||||
|
||||
shell_result = @ceedling[:tool_executor].exec( coverage_command[:line], coverage_command[:options] )
|
||||
|
||||
|
||||
arg_hash[:shell_result] = shell_result
|
||||
@ceedling[:plugin_manager].post_compile_execute(arg_hash)
|
||||
end
|
||||
|
||||
def post_test_fixture_execute(arg_hash)
|
||||
result_file = arg_hash[:result_file]
|
||||
|
||||
|
||||
if ((result_file =~ /#{BULLSEYE_RESULTS_PATH}/) and (not @result_list.include?(result_file)))
|
||||
@result_list << arg_hash[:result_file]
|
||||
end
|
||||
@@ -70,13 +70,13 @@ class Bullseye < Plugin
|
||||
:header => BULLSEYE_ROOT_NAME.upcase,
|
||||
:results => results
|
||||
}
|
||||
|
||||
|
||||
@ceedling[:plugin_reportinator].run_test_results_report(hash) do
|
||||
message = ''
|
||||
message = 'Unit test failures.' if (results[:counts][:failed] > 0)
|
||||
message
|
||||
end
|
||||
|
||||
|
||||
# coverage results
|
||||
return if (verify_coverage_file() == false)
|
||||
if (@ceedling[:task_invoker].invoked?(/^#{BULLSEYE_TASK_ROOT}(all|delta)/))
|
||||
@@ -100,13 +100,13 @@ class Bullseye < Plugin
|
||||
}
|
||||
|
||||
@ceedling[:plugin_reportinator].run_test_results_report(hash)
|
||||
|
||||
|
||||
# coverage results
|
||||
command = @ceedling[:tool_executor].build_command_line(TOOLS_BULLSEYE_REPORT_COVSRC)
|
||||
shell_result = @ceedling[:tool_executor].exec(command[:line], command[:options])
|
||||
report_coverage_results_all(shell_result[:output])
|
||||
end
|
||||
|
||||
|
||||
def enableBullseye(enable)
|
||||
if BULLSEYE_AUTO_LICENSE
|
||||
if (enable)
|
||||
@@ -117,14 +117,14 @@ class Bullseye < Plugin
|
||||
@ceedling[:streaminator].stdout_puts("Reverting Bullseye to previous state")
|
||||
end
|
||||
|
||||
args.each do |arg|
|
||||
args.each do |arg|
|
||||
command = @ceedling[:tool_executor].build_command_line(TOOLS_BULLSEYE_BUILD_ENABLE_DISABLE, [], arg)
|
||||
shell_result = @ceedling[:tool_executor].exec(command[:line], command[:options])
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
private ###################################
|
||||
|
||||
def report_coverage_results_all(coverage)
|
||||
@@ -139,7 +139,7 @@ class Bullseye < Plugin
|
||||
if (coverage =~ /^Total.*?=\s+([0-9]+)\%/)
|
||||
results[:coverage][:functions] = $1.to_i
|
||||
end
|
||||
|
||||
|
||||
if (coverage =~ /^Total.*=\s+([0-9]+)\%\s*$/)
|
||||
results[:coverage][:branches] = $1.to_i
|
||||
end
|
||||
@@ -177,10 +177,10 @@ class Bullseye < Plugin
|
||||
banner = @ceedling[:plugin_reportinator].generate_banner( "#{BULLSEYE_ROOT_NAME.upcase}: CODE COVERAGE SUMMARY" )
|
||||
@ceedling[:streaminator].stdout_puts "\n" + banner + "\nNo coverage file.\n\n"
|
||||
end
|
||||
|
||||
|
||||
return exist
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -188,7 +188,7 @@ end
|
||||
END {
|
||||
# cache our input configurations to use in comparison upon next execution
|
||||
if (@ceedling[:task_invoker].invoked?(/^#{BULLSEYE_TASK_ROOT}/))
|
||||
@ceedling[:cacheinator].cache_test_config( @ceedling[:setupinator].config_hash )
|
||||
@ceedling[:cacheinator].cache_test_config( @ceedling[:setupinator].config_hash )
|
||||
@ceedling[BULLSEYE_SYM].enableBullseye(false)
|
||||
end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user