Testing

Running Tests

bundle exec rspec

Test Structure

  • spec/ - Test files

  • spec/fixtures/ - Test data

  • One spec file per class

Writing Tests

RSpec.describe Cabriolet::CAB::Decompressor do
  describe '#extract_file' do
    it 'extracts files correctly' do
      # Test implementation
    end
  end
end

Coverage

Aim for comprehensive coverage of all public APIs.


Table of contents