cupakromer / emoji-rspec Goto Github PK
View Code? Open in Web Editor NEWCustom Emoji Formatters for RSpec
License: MIT License
Custom Emoji Formatters for RSpec
License: MIT License
Hello, I've got a strange error using emoji-rspec gem
➜ track2win git:(master) ✗ rspec --require emoji-rspec --format smiles
/Users/anton/.rvm/gems/ruby-2.1.2/gems/emoji-rspec-1.0.1/lib/emoji_test_love/rspec.rb:7:in `alias_method': undefined method `built_in_formatter' for class `RSpec::Core::Configuration' (NameError)
from /Users/anton/.rvm/gems/ruby-2.1.2/gems/emoji-rspec-1.0.1/lib/emoji_test_love/rspec.rb:7:in `<class:Configuration>'
from /Users/anton/.rvm/gems/ruby-2.1.2/gems/emoji-rspec-1.0.1/lib/emoji_test_love/rspec.rb:5:in `<top (required)>'
from /Users/anton/.rvm/gems/ruby-2.1.2/gems/emoji-rspec-1.0.1/lib/emoji-rspec.rb:2:in `require'
from /Users/anton/.rvm/gems/ruby-2.1.2/gems/emoji-rspec-1.0.1/lib/emoji-rspec.rb:2:in `<top (required)>'
from /Users/anton/.rvm/gems/ruby-2.1.2/gems/rspec-core-3.0.3/lib/rspec/core/configuration.rb:1024:in `require'
from /Users/anton/.rvm/gems/ruby-2.1.2/gems/rspec-core-3.0.3/lib/rspec/core/configuration.rb:1024:in `block in requires='
from /Users/anton/.rvm/gems/ruby-2.1.2/gems/rspec-core-3.0.3/lib/rspec/core/configuration.rb:1024:in `each'
from /Users/anton/.rvm/gems/ruby-2.1.2/gems/rspec-core-3.0.3/lib/rspec/core/configuration.rb:1024:in `requires='
from /Users/anton/.rvm/gems/ruby-2.1.2/gems/rspec-core-3.0.3/lib/rspec/core/configuration_options.rb:101:in `block in process_options_into'
from /Users/anton/.rvm/gems/ruby-2.1.2/gems/rspec-core-3.0.3/lib/rspec/core/configuration_options.rb:100:in `each'
from /Users/anton/.rvm/gems/ruby-2.1.2/gems/rspec-core-3.0.3/lib/rspec/core/configuration_options.rb:100:in `process_options_into'
from /Users/anton/.rvm/gems/ruby-2.1.2/gems/rspec-core-3.0.3/lib/rspec/core/configuration_options.rb:22:in `configure'
from /Users/anton/.rvm/gems/ruby-2.1.2/gems/rspec-core-3.0.3/lib/rspec/core/runner.rb:96:in `setup'
from /Users/anton/.rvm/gems/ruby-2.1.2/gems/rspec-core-3.0.3/lib/rspec/core/runner.rb:85:in `run'
from /Users/anton/.rvm/gems/ruby-2.1.2/gems/rspec-core-3.0.3/lib/rspec/core/runner.rb:70:in `run'
from /Users/anton/.rvm/gems/ruby-2.1.2/gems/rspec-core-3.0.3/lib/rspec/core/runner.rb:38:in `invoke'
from /Users/anton/.rvm/gems/ruby-2.1.2/gems/rspec-core-3.0.3/exe/rspec:4:in `<top (required)>'
from ./bin/rspec:16:in `load'
from ./bin/rspec:16:in `<main>'
More Unicode than emoji, but still fun:
Pass: ✓✔
Fail: ✕ ✖ ✗ ✘
Pending: ? ¿ ⁇ ?﹖
Add color formatting to them too.
Passing in a namedspaced class fails when setting the class constant: 'const_set': wrong constant name Bar::BazFormatter (NameError)
emoji-rspec/lib/emoji_test_love/rspec/rspec_integration.rb:48:in `const_set': wrong constant name Bar::BazFormatter (NameError)
from emoji-rspec/lib/emoji_test_love/rspec/rspec_integration.rb:48:in `RSpecFormatter'
from emoji-rspec/spec/generating_formatters_spec.rb:37:in `<top (required)>'
from gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load'
from gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `block in load_spec_files'
from gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `each'
from gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load_spec_files'
from gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:22:in `run'
from gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:80:in `run'
from gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17:in `block in autorun'
If your test passes you should have that martini to celebrate! But if it fails... you'll be needing that coffee.
Would be cool to take the formatters and support them as output for minitest, as well. With the refactoring I did, I think I can turn into a delegation model, rather than inheritance, to get the display characters. After that, it is just a matter of adding classes for minitest integration.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.