Skip to content
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

RspecRunner: re-export report hash #404

Merged
merged 4 commits into from
Feb 3, 2016
Merged

RspecRunner: re-export report hash #404

merged 4 commits into from
Feb 3, 2016

Conversation

srenatus
Copy link
Contributor

@srenatus srenatus commented Feb 1, 2016

This lets the user of access the report in a halfway-convenient fashion, e.g.

runner = Inspec::Runner.new
runner.add_tests(['some/tests'])
exitcode = runner.run
pp runner.report

@srenatus srenatus added the Type: Enhancement Improves an existing feature label Feb 1, 2016
If reporting is requested, register a "reporting formatter", i.e.,
Inspec::RSpecReporter, that does the same things JsonFormatter does, but
suppresses output.

When the report is then requested, it returns the output hash that
JsonFormatter aggregates.
@chris-rock
Copy link
Contributor

Thanks for the improvement @srenatus

chris-rock added a commit that referenced this pull request Feb 3, 2016
RspecRunner: re-export report hash
@chris-rock chris-rock merged commit 44dc150 into master Feb 3, 2016
@chris-rock chris-rock deleted the sr/report branch February 3, 2016 13:33
@chris-rock chris-rock added this to the 0.9.12 milestone Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improves an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants