Sha256: 780a9eec986e701a1d13a0127ac68a26e176f3e23b26ebecabc722039e969fde

Contents?: true

Size: 736 Bytes

Versions: 9

Compression:

Stored size: 736 Bytes

Contents

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

  let(:reportable) { subject_a_result }

  describe '.call' do
    context 'on full coverage' do
      it_reports <<-'STR'
        subject-a
        - test-a
      STR
    end

    context 'on partial coverage' do
      with(:mutation_a_test_result) { { passed: true } }

      it_reports <<-'STR'
        subject-a
        - test-a
        evil:subject-a:d27d2
        @@ -1,2 +1,2 @@
        -true
        +false
        -----------------------
      STR
    end

    context 'without results' do
      with(:subject_a_result) { { mutation_results: [] } }

      it_reports <<-'STR'
        subject-a
        - test-a
      STR
    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/subject_result_spec.rb
mutest-0.0.9 spec/unit/mutest/reporter/cli/printer/subject_result_spec.rb
mutest-0.0.8 spec/unit/mutest/reporter/cli/printer/subject_result_spec.rb
mutest-0.0.7 spec/unit/mutest/reporter/cli/printer/subject_result_spec.rb
mutest-0.0.6 spec/unit/mutest/reporter/cli/printer/subject_result_spec.rb
mutest-0.0.5 spec/unit/mutest/reporter/cli/printer/subject_result_spec.rb
mutest-0.0.4 spec/unit/mutest/reporter/cli/printer/subject_result_spec.rb
mutest-0.0.3 spec/unit/mutest/reporter/cli/printer/subject_result_spec.rb
mutest-0.0.2 spec/unit/mutest/reporter/cli/printer/subject_result_spec.rb