Created
February 23, 2016 19:42
-
-
Save msroot/fdd0164676a9f4d93317 to your computer and use it in GitHub Desktop.
rspec formaters.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Add multiple formatters to formater | |
| RSpec.configure do |c| | |
| c.add_formatter(:documentation) | |
| c.add_formatter(:json) | |
| c.add_formatter(:progress) | |
| end | |
| json_formatter = RSpec::Core::Formatters::JsonFormatter.new($stdout) | |
| {"version":"3.4.1","messages":["Run options:\n include {:focus=>true}\n exclude {:slow=>true}"],"examples":[{"description":"should be 200 OK","full_description":"Easybring::APIv1 GET businesses should be 200 OK","status":"passed","file_path":"./spec/endpoints/businesses_spec.rb","line_number":20,"run_time":2.603616,"pending_message":null},{"description":"should be an Array","full_description":"Easybring::APIv1 GET businesses should be an Array","status":"passed","file_path":"./spec/endpoints/businesses_spec.rb","line_number":24,"run_time":0.130511,"pending_message":null}],"summary":{"duration":3.407043,"example_count":2,"failure_count":0,"pending_count":0},"summary_line":"2 examples, 0 failures"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment