smartystreets/goconvey — pull request #163 by adrianduke (2014-03-11 09:53:33+00:00)
Title: Feature - Ignore Others button

### Problem

When you have many packages under test and you want to reduce testing scope to a single (or few) package quickly.

It often becomes tedious to have to click 'Ignore' on every package (waiting for the server to run the tests each time), as you try to reduce the packages under test to a single or few that you are currently working on.

### Solution

Implement a 'Ignore Others' button on the package header to ignore all the other packages apart from the one targeted in a single request.

![](http://s.gpmd.net/17aeb2.png)

### Implementation

I adjusted the Ignore and Reinstate methods to take a string of paths splitting on ';'. The Javascript currently conforms to the current stories:

``` cucumber
Given all packages are watched
When I click the ignore others button on any package
Then I should see all other packages unwatched

Given all packages are unwatched
When I click the ignore others button on any package
Then I should see all other packages unwatched

Given some packages are watched
And some packages are unwatched
When I click the ignore others button on any package
Then I should see all other packages unwatched

Given all but one packages are unwatched
When I click the ignore others button on the watched package
Then I should see all packages being watched
```

The implementation doesn't interfere with the ignore button, so you are able to 'Ignore Others' and then selectively 'Un-Ignore' any other package.