Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

Flag: test args #141

Open
steveklabnik opened this issue Aug 10, 2017 · 4 comments
Open

Flag: test args #141

steveklabnik opened this issue Aug 10, 2017 · 4 comments

Comments

@steveklabnik
Copy link
Owner

This issue is part of #125

--test-args:

Using this flag looks like this:

$ rustdoc src/lib.rs --test --test-args ignored

This flag will pass options to the test runner when running documentation tests.
For more, see the chapter on documentation tests.

See also --test.


Should we keep this flag or not?

@steveklabnik
Copy link
Owner Author

This seems quite important.

@hjr3
Copy link
Contributor

hjr3 commented Dec 3, 2017

I was looking at starting to implement this and I am not sure we need this flag. The existing rustdoc would do something like $ rustdoc x.rs --test --test-args --color=never which made sense because --test was a distinct from --test-args. In this rustdoc, test is a subcommand. It seems better to implement $ rustdoc test --color=never instead of requiring $ rustdoc test --test-args --color=never.

@hjr3
Copy link
Contributor

hjr3 commented Dec 3, 2017

@hjr3
Copy link
Contributor

hjr3 commented Dec 5, 2017

Reading through #190, we may not need this flag. Need to find out if we plan to have rustdoc tests be actual tests.

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

No branches or pull requests

2 participants