Skip to content

Commit

Permalink
mention xcode plugin for running focused specs
Browse files Browse the repository at this point in the history
  • Loading branch information
cppforlife committed Oct 3, 2012
1 parent 4a5527a commit 03c1b0f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.markdown
Expand Up @@ -135,7 +135,7 @@ Here is a list of built-in matchers you can use:
expect(...).to(contain(@"something"));
expect(...).to(be_empty());

expect(^{ ... }).to(raise_exception([NSInternalInconsistencyException]));
expect(^{ ... }).to(raise_exception([NSInternalInconsistencyException class]));

These matchers use C++ templates for type deduction. You'll need to do two things to use them:

Expand Down Expand Up @@ -293,8 +293,8 @@ default parameters.
## Focused specs

Sometimes when debugging or developing a new feature it is useful to run only a
subset of your tests. That can be achieved by marking any number/combination of
examples with an 'f'. You can use `fit`, `fdescribe` and `fcontext` like this:
subset of your tests. That can be achieved by marking any number of examples
with an 'f'. You can use `fit`, `fdescribe` and `fcontext` like this:

fit(@"should do something eventually", ^{
// ...
Expand All @@ -309,6 +309,10 @@ non-zero exit code when a test suite contains at least one focused example. That
was done to make CI fail if someone accidently forgets to unfocus focused
examples before commiting and pushing.

Note: For improved Xcode integration see
[CedarShortcuts](https://github.com/cppforlife/CedarShortcuts), an Xcode plugin
that provides keyboard shortcuts for focusing on specs under editor cursor.


## Reporters

Expand Down

0 comments on commit 03c1b0f

Please sign in to comment.