Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Support custom output formatters #9

Closed
modocache opened this issue Jun 7, 2014 · 3 comments
Closed

Support custom output formatters #9

modocache opened this issue Jun 7, 2014 · 3 comments

Comments

@modocache
Copy link
Member

Luckily, some nerd wrote down how RSpec implements custom output formatters.

An example in Objective-C can be found here: kiwi-bdd/Kiwi#449

I wonder if it'd be possible to implement an output formatter that aggregates results and displays an OS X notification with a breakdown of passed, pending, failed, and errored?

@modocache
Copy link
Member Author

Parameters passed to formatters should include the number of pending examples, as described in #38. At that point pending examples should stop printing directly via NSLog.

@modocache modocache changed the title Support custom output formatters Quick: Support custom output formatters Jun 18, 2014
@modocache modocache changed the title Quick: Support custom output formatters [Quick] Support custom output formatters Jun 18, 2014
modocache added a commit that referenced this issue Jun 28, 2014
Prior to this commit, Nimble would report failures via XCTFail. While
this allows for a complete separation of Quick and Nimble, it is
inflexible--if expectations are placed within a shared example group,
for example, Quick has no way of reporting the failures accurately.

Quick now reports failures via exceptions. Nimble raises exceptions to
indicate failures, with details on the file and line number of the
failed expectation embedded within the raised exception's user info.

This paves the way for shared examples #44 and
custom output formatters #9.

Other changes of note:

- Remove API to override failure reporting in QuickSpec. Since QuickSpec
  uses SenTestingKit file and line number keys anyway, the issue raised
  in #41 can still be considered resolved
- Rename Callsite_ to Callsite--I don't know how I missed this in the
  pull request review
@modocache modocache modified the milestones: v0.1.0, v0.1.0-beta Jun 29, 2014
@modocache modocache removed the quick label Aug 26, 2014
@modocache modocache changed the title [Quick] Support custom output formatters Support custom output formatters Aug 26, 2014
@modocache modocache added this to the v1.0.0 milestone Nov 18, 2014
@modocache modocache removed this from the v1.0.0 milestone May 1, 2015
@karapigeon
Copy link

What's the status on this?

@modocache
Copy link
Member Author

This is a sort of "wishlist" feature, I'm not working on it at the moment. :)

ikesyo pushed a commit that referenced this issue Sep 3, 2016
[NSBundle+CurrentTestBundle] Use `first(where:)`
@ikesyo ikesyo closed this as completed May 29, 2021
@Quick Quick locked and limited conversation to collaborators May 29, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

3 participants