jnicklas/evergreen — Issue #42: Feature suggestion: running separate files with evergreen runner
Author: gregolsen
Created: 2011-11-30 11:29:54+00:00
State: open

### Feature:
I as a developer
Want be able to run separate jasmine specs with evergreen runner
So that I can work on particular feature without running all tests

### Purpose:
The original purpose is to run specs on our homegrown CI using evergreen runner. Our CI run specs in several threads: it collects all spec files, divide them on groups and run each group in separate thread. This works great with rspec and cucumber (both of them support separate files as CLI arguments). That's why it will be great to have similar functionality for evergreen runner.

#### Additional purposes:
* It's always handy to run just one spec from console, while working on particular feature.
I know - this can be done via browser - but it will be way more easy if I can do something like this `evergreen spec/models/player.coffee` (while using capybara-webkit driver it's just great).
* This makes possible to implement handy vim snippets (like `:Rake` in rails.vim that executes whole spec you currently editing)

### Suggestions:
I'm ready to implement this and make a pull request. Just want to know your thoughts, because currently evergreen runner accept one CL parameter for Evergreen.root. Maybe it will be better to consider that cwd IS the root, and treat all passed args like files/directories with specs? Then Evergreen::Suite#specs method can be modified to either load all specs (no args give) or load only specified files.

Let me know your thoughts about that, does all this make any sense to you?