Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rustpkg only builds one test.rs file per crate #9602

Closed
sfackler opened this issue Sep 29, 2013 · 2 comments
Closed

Rustpkg only builds one test.rs file per crate #9602

sfackler opened this issue Sep 29, 2013 · 2 comments

Comments

@sfackler
Copy link
Member

If I have a project that looks like

foo/
    bar/
        mod.rs
        test.rs
    lib.rs
    test.rs

and run

rustpkg test foo

the only tests run are the ones in bar/test.rs.

A concrete example is in https://github.com/sfackler/rust-postgres, where only the tests in pool/test.rs are run.

sfackler added a commit to sfackler/rust-postgres that referenced this issue Sep 29, 2013
Due to rust-lang/rust#9602, the connection pool test had to be pulled into
the main test file.
@catamorphism
Copy link
Contributor

Related to #7240

@ghost ghost assigned catamorphism Sep 29, 2013
@catamorphism
Copy link
Contributor

We plan to remove the "alternate crate root" way of testing rustpkg packages (see #9003), so this is going to be a non-issue. The more general issue is #7240, which is still open. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants