Unit testy #7

Closed
wants to merge 11 commits into
from

Conversation

Projects
None yet
2 participants
@puyo
Contributor

puyo commented Nov 6, 2010

Okay. Unit tests that use vim server and pass all my criteria. In fact I ran them with :bufdo on my entire repository of feature files at work and I'm happy with the results. Add more example feature files in the spec directory if you like. They could be more fine grained tests but they've sufficed.

puyo added some commits Aug 27, 2010

Improve indentation of tags and comments.
Tags on features are indented at 0.

Other tags are indented at the same level as Scenario headers (one
shiftwidth). This matches all the examples I have read.

Comments above a feature are indented at 0.

Comments after a blank line are indented at the same level as Scenario
headers (one shiftwidth).

All other comments preserve the indent of the line before them.
Improve indentation of tags and comments.
Tags on features are indented at 0.

Other tags are indented at the same level as Scenario headers (one
shiftwidth). This matches all the examples I have read.

Comments above a feature are indented at 0.

Comments after a blank line are indented at the same level as Scenario
headers (one shiftwidth).

All other comments preserve the indent of the line before them.
@tpope

This comment has been minimized.

Show comment Hide comment
@tpope

tpope Nov 7, 2010

Owner

I can't get the specs to run.

No examples were matched. Perhaps {:unless=>#<Proc:0xb74483e4@/home/tpope/.rvm/gems/ruby-1.8.7-p299/gems/rspec-core-2.1.0/lib/rspec/core/configuration.rb:53>, :if=>#<Proc:0xb7448524@/home/tpope/.rvm/gems/ruby-1.8.7-p299/gems/rspec-core-2.1.0/lib/rspec/core/configuration.rb:52>} is excluding everything?
Finished in 0.00016 seconds
0 examples, 0 failures

Perhaps I need an older RSpec?

Owner

tpope commented Nov 7, 2010

I can't get the specs to run.

No examples were matched. Perhaps {:unless=>#<Proc:0xb74483e4@/home/tpope/.rvm/gems/ruby-1.8.7-p299/gems/rspec-core-2.1.0/lib/rspec/core/configuration.rb:53>, :if=>#<Proc:0xb7448524@/home/tpope/.rvm/gems/ruby-1.8.7-p299/gems/rspec-core-2.1.0/lib/rspec/core/configuration.rb:52>} is excluding everything?
Finished in 0.00016 seconds
0 examples, 0 failures

Perhaps I need an older RSpec?

@puyo

This comment has been minimized.

Show comment Hide comment
@puyo

puyo Nov 8, 2010

Contributor

I'll look into it.

Contributor

puyo commented Nov 8, 2010

I'll look into it.

@puyo

This comment has been minimized.

Show comment Hide comment
@puyo

puyo Nov 13, 2010

Contributor

So it was using RSpec 1.3 for some reason. Now it is on the latest stable RSpec.

It requires gvim and pbcopy commands, currently, but perhaps it can be rejigged to eliminate some dependencies. mvim works just as well, if you symlink it or update the spec file.

Running them once sometimes fails but subsequent runs seem more deterministic. It is a Good Enough (TM) set up to test what I wanted to test.

Contributor

puyo commented Nov 13, 2010

So it was using RSpec 1.3 for some reason. Now it is on the latest stable RSpec.

It requires gvim and pbcopy commands, currently, but perhaps it can be rejigged to eliminate some dependencies. mvim works just as well, if you symlink it or update the spec file.

Running them once sometimes fails but subsequent runs seem more deterministic. It is a Good Enough (TM) set up to test what I wanted to test.

@puyo puyo closed this Apr 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment