Skip to content

testdrb path confusion #41

@jesseclark

Description

@jesseclark

Using:

  • spork (0.9.0.rc9 5119287)
  • spork-testunit (0.0.7 fcf5306)
  • rails (3.1.3)
    and
    ruby 1.9.2p180

Running:

testdrb -Itest test/unit/eligibility_criterion_test.rb 

fails with:
Exception encountered: LoadError: no such file to load -- test/unit/eligibility_criterion_test.rb

but

testdrb -Itest unit/eligibility_criterion_test.rb 

works.

Since specifying a test when running tests via rake is usually relevant to the project directory e.g.:
but

rake test:units TEST=test/units/foo_test.rb

it seems like following this same pattern would be most familiar to most devs.

Regardless, , it doesn't seem clear to me from the README that the path to the test file when calling testdrb is relative to the test directory instead of the project directory.

I would suggest either changing the path or improving the README.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions