burke / zeus

Boot any rails app in under a second.
MIT License
3.33k stars 231 forks source link

Zeus 0.15.10 no test examples found #595

Closed J-ad closed 7 years ago

J-ad commented 7 years ago

Description of Problem

Just installed zeus 0.15.10, all zeus commands work fine but no test examples are found. Downgrading to 0.15.4 fixed the issue.

System details

Test framework: Rspec

Steps to Reproduce

1) zeus start in a new rails project

2) zeus rspec

Observed Behavior

metcalf commented 7 years ago

@latortuga: It seems plausible that this is related to #588 which in turn appears to stem from your #514. Mind checking if any work you do on #588 also resolves this?

natesire commented 7 years ago

I worked around it by adding the dir spec to the command

zeus test spec

Zeus invokes Rspec RSpec::Core::Runner.invoke

And Rspec expects ARGV to contain the dir path to run. status = run(ARGV, $stderr, $stdout).to_i

which calls

line 64: rspec-core-3.5.4/lib/rspec/core/runner.rb def self.run(args, err=$stderr, out=$stdout)

and configures what dir to run for tests.

So Rspec expects the test dir to be explicitly set in the arguments when being invoked.

sideshowcoder commented 7 years ago

See the linked PR which restores the 0.15.4 behaviour. As I'm not an avid rspec user I'm not sure this is what we really want @J-ad @nathantech2005 I guess this basically copies what bundle exec rspec would do so right?