specreporter-spec
Version, currently 0.2.02 versions
- 0.2.0latestAug 30, 2018
- 0.1.0not indexedAug 30, 2018
github.com/docelic/specreporter-spec
SpecReporter spec formatter for Crystal, similar to Ruby minitest-reporters' SpecReporter
Installation
# Add this to your shard.yml
dependencies:
specreporter-spec:
github: docelic/specreporter-spec
version: ~> 0.2.0Then run:
shards installshard.yml
- Crystal
0.26.1- License
- Apache-2.0
- Author
- Davor Ocelic
Dependencies
This version declares no dependencies.
README
Introduction
SpecReporter is a spec output formatter for Crystal, similar to Ruby minitest-reporters' SpecReporter.

Description
Specreporter-spec looks and works similar to Ruby's "SpecReporter" module from the minitest-reporters gem.
The changes/improvements compared to the default Crystal formatter include:
- Nicer and more informative output
- Info on elapsed time for each test
- Short and informative backtrace summaries
- Info on total number of assertions ran
- Configurable field widths
- Configurable terminal width
- Configurable elapsed time precision
- Ability to enable/disable sections from default formatter
Usage
Add this to your application's shard.yml:
development_dependencies:
specreporter-spec:
github: docelic/specreporter-spec
Simply add the following content to your spec/spec_helper.cr:
require "spec"
require "specreporter-spec"
Spec.override_default_formatter(
Spec::SpecReporterFormatter.new(
#indent_string: " ", # Indent string. Default " "
#width: (ENV["COLUMNS"]? || 80).to_i-2, # Terminal width. Default 78
## ^-- You may need to run "eval `resize`" in term to get COLUMNS variable
#elapsed_width: 8, # Number of decimals for "elapsed" time. Default 3
#status_width: 10, # Width of the status field. Default 5
#trim_exceptions: false, # Hide callstack from exceptions? Default true
#skip_errors_report: false, # Skip default backtraces. Default true
#skip_slowest_report: false, # Skip default "slowest" report. Default true
#skip_failed_report: false, # Skip default failed reports summary. Default true
))
Configure the options to your liking.
And run tests in the usual way (crystal s[pec]).
Enjoy!
TODO
The formatter certainly works, but the implementation must be improved before it could be added to Crystal as built-in formatter.
Code improvements and further feature ideas welcome! Thanks!
Other / Unrelated Formatters
Other / unrelated spec formatters for Crystal in existence:
- Rainbow - formats the standard formatter dots in rainbow colors.
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.2.0- Tagged
- Aug 30, 2018
- Commit
72485df443bd- Crystal
0.26.1- Indexed
- yes
Dependents
Repository
github.com/docelic/specreporter-spec
Metadata
- Created
- Aug 18, 2026
- Updated
- Oct 6, 2026
- Synced
- Oct 6, 2026
- Versions
- 2