Sha256: 04613b0ecead85accd5910fcee42fed5f2d2abf2b0b46dbb8fb9d6cce124c8b9
Contents?: true
Size: 673 Bytes
Versions: 9
Compression:
Stored size: 673 Bytes
Contents
# frozen_string_literal: true module RubyMemcheck class TestTask < Rake::TestTask attr_reader :configuration attr_reader :reporter def initialize(*args) @configuration = if !args.empty? && args[0].is_a?(Configuration) args.shift else RubyMemcheck.default_configuration end super end def ruby(*args, **options, &block) command = configuration.command(args) @reporter = TestTaskReporter.new(configuration) @reporter.setup sh(command, **options) do |ok, res| @reporter.report_valgrind_errors yield ok, res if block_given? end end end end
Version data entries
9 entries across 9 versions & 1 rubygems