Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Vigia formmater #5
As for now, vigia uses the default RSpec formatter specified on config. It uses a formatter block per each example to provide a more useful information (like the expectations and results), but most of the times, it outputs too much information, making hard to debug which is the real server error.
Vigia uses RSpec contexts as the way to define the variables used on the http requests. Therefore, it seems logical that the better way to output the errors would be using some kind of by context aggregation.
I was thinking in creating a new formatter which will output the information using the context to group the examples results. Although the backtrace of any single error will be still appended to the output, the idea is to reduce the amount of information on the screen per example
This would be an example of a failing context due an invalid http code response
What do you think? Is there any other information you think it would be useful to have inside the output?