Module: SpecGuard
- Defined in:
- lib/specguard/version.rb,
lib/specguard/rspec.rb,
lib/specguard/rspec/cli.rb,
lib/specguard/rspec/linter.rb,
lib/specguard/rspec/finding.rb,
lib/specguard/rspec/scanner.rb,
lib/specguard/rspec/version.rb,
lib/specguard/rspec/formatter.rb,
lib/specguard/rspec/transport.rb,
lib/specguard/rspec/ingest_cli.rb,
lib/specguard/minitest/reporter.rb,
lib/specguard/rspec/configuration.rb,
lib/specguard/rspec/file_selector.rb,
lib/specguard/rspec/json_reporter.rb,
lib/specguard/rspec/ingest_reporter.rb,
lib/specguard/rspec/annotation_lookup.rb,
lib/specguard/rspec/validator_backend.rb,
lib/specguard/rspec/annotation_scanner.rb,
lib/specguard/rspec/payload_normalizer.rb
Overview
The Minitest half of specguard-ruby. Everything the RSpec formatter knows
about the platform — the envelope's field names, the transport's
never-raise contract, the switch that a missing key is — is framework-free
knowledge that already lives in SpecGuard::RSpec::Configuration and
SpecGuard::RSpec::Transport (both named for the framework that happened to
ship first, neither containing any RSpec). This adapter contributes only the
part that is genuinely Minitest's: turning Minitest::Result objects into
the same row shape the RSpec formatter emits, at the moment Minitest hands
them to a reporter.
It is a duck-typed Minitest reporter (start / record / report /
passed?) rather than a subclass of Minitest::AbstractReporter, because
the composite only ever calls those four and a superclass would add
assertions about documentation we do not need.
Telemetry never fails the suite
The same guarantee the RSpec formatter gives, arrived at the same way: every
step is wrapped, a failed delivery costs one line on stderr and a line in the
local sink, and #passed? is a constant true because Minitest folds it
into the run's own verdict via CompositeReporter#passed? — all? over its
reporters — and a telemetry reporter that could redden a suite would be a
telemetry reporter somebody deletes.
Defined Under Namespace
Modules: Minitest, RSpec Classes: RSpecFormatter
Constant Summary collapse
- VERSION =
"0.3.3"