Sha256: 04ee14aa1f9c0a8e5e5983a75f2b109362a40ddea1412a7f44d50223fa377fa1

Contents?: true

Size: 541 Bytes

Versions: 9

Compression:

Stored size: 541 Bytes

Contents

RSpec.describe Mutest::Reporter::CLI::Printer::MutationProgressResult do
  setup_shared_context

  let(:reportable) { mutation_a_result }

  before do
    allow(output).to receive(:tty?).and_return(true)
  end

  describe '.run' do
    context 'on killed mutest' do
      with(:mutation_a_test_result) { { passed: true } }

      it_reports Mutest::Color::RED.format('F')
    end

    context 'on alive mutest' do
      with(:mutation_a_test_result) { { passed: false } }

      it_reports Mutest::Color::GREEN.format('.')
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mutest-0.0.10 spec/unit/mutest/reporter/cli/printer/mutation_progress_result_spec.rb
mutest-0.0.9 spec/unit/mutest/reporter/cli/printer/mutation_progress_result_spec.rb
mutest-0.0.8 spec/unit/mutest/reporter/cli/printer/mutation_progress_result_spec.rb
mutest-0.0.7 spec/unit/mutest/reporter/cli/printer/mutation_progress_result_spec.rb
mutest-0.0.6 spec/unit/mutest/reporter/cli/printer/mutation_progress_result_spec.rb
mutest-0.0.5 spec/unit/mutest/reporter/cli/printer/mutation_progress_result_spec.rb
mutest-0.0.4 spec/unit/mutest/reporter/cli/printer/mutation_progress_result_spec.rb
mutest-0.0.3 spec/unit/mutest/reporter/cli/printer/mutation_progress_result_spec.rb
mutest-0.0.2 spec/unit/mutest/reporter/cli/printer/mutation_progress_result_spec.rb