elastic / logstash

Logstash - transport and process your logs, events, or other data
https://www.elastic.co/products/logstash
Other
14.17k stars 3.49k forks source link

rspec tests doesn't work on windows #3213

Open fbaligand opened 9 years ago

fbaligand commented 9 years ago

I can run rspec tests with success on linux. But that doesn't work on windows. It seems that rspec doesn't detect test examples.

Here is the result when I execute bundle exec rspec with logstash-filter-multiline plugin on windows :

No examples found.

Finished in 0 seconds
0 examples, 0 failures

My environment :

purbon commented 9 years ago

@fbaligand can you try what happen if you do bundle exec rspec [path_to_spec_file] ? where path to spec file is the spec you aim to run.

fbaligand commented 9 years ago

It works fine using this trick. Thanks @purbon. Why does a simple bundle exec rspec works fine on linux but not on windows ? Is it linked to logstash or to rspec itself ?

purbon commented 9 years ago

@fbaligand I have no idea, I'm actually not a windows guru.

@jsvd @ph do you guys have a clue why this could not work on windows?

purbon commented 9 years ago

@fbaligand is not a trick, with this command you're actually telling rspec direct the file to run.

fbaligand commented 9 years ago

Indeed. So thanks for this information ;)