-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QuietQuality gets upset if rspec returns something other than JSON #86
Comments
I've had trouble with the rspec output a few times, but I hadn't seen this situation - I guess simplecov is writing using This is awkward to deal with - we can work around it by writing the output to a file and reading the file, but rspec's runner would need to stop inheriting from BaseRunner to do that well, and the block forms of managing temporary files/directories are painful to use in memoized-immutable-style objects like the current runners :-\ I sure with people would write their logging output to the right stream.. |
The smaller change we can make is to be more accomodating in the parser - if we assume rspec might come with arbitrary junk on the front, it might be possible to detect when the real json starts and only parse that? |
Ugh, it's on the end, and doesn't even include a newline:
I do think the problem here is with simplecov, but obviously tons of people use that. Though I think the standard approach is to enable it controlled with an environment variable (so you don't get failures and coverage reports when you run a single spec file).. I think I see a solution using a regex in the parser though, I'm going to pursue that. |
Resolved by #91 in 1.2.2 |
When QQ runs the default rspec config, it may have other plugins outputting that interfere with the parsing of the JSON output:
The text was updated successfully, but these errors were encountered: