215 Commits

Author SHA1 Message Date
Dale Wijnand
f8c9928cc1
Rework some test projects to use the "foo" default
Generally that means either switching "foo" and "bar" around (reversing
the arrow), or it means push "foo" to "bar" (and sometimes "bar" to
"baz", etc..) to free up "foo".

For trivia that leaves 80/1222 outliers, therefore 93.4% of test
project use the default. :)
2018-07-21 19:40:45 +01:00
Dale Wijnand
7fe2fbc8a3
Remove the argument from the project test support function
By rewriting the tests, with rerast (https://github.com/google/rerast),
to use the newly introduced "at" method.

First I added the following temporary function to cargotest::support:

    pub fn project_foo() -> ProjectBuilder {
        project("foo")
    }

Then I defined the following rewrite.rs:

    use cargotest::support::{ project, project_foo };

    fn rule1(a: &'static str) {
        replace!(project("foo") => project_foo());
        replace!(project(a) => project_foo().at(a));
    }

Then I ran rerast:

    cargo +nightly rerast --rules_file=rewrite.rs --force --targets tests --file tests/testsuite/main.rs

Finally I searched and replaced the references to project_foo with
argument-less project (a little awkardly on macOS with a git clean).

    find tests -type f -exec sed -i -e 's/project_foo/project/g' {} +
    git clean -d tests
2018-07-20 13:31:50 +01:00
Gabriel Féron
987ce8751f Fix test to work on Windows 2018-05-29 11:38:27 +02:00
Gabriel Féron
53480ac7c7 Add more instructions to error message 2018-05-29 11:05:34 +02:00
Gabriel Féron
e31f3c3ca9 Use auto split argument in test 2018-05-28 14:43:51 +02:00
Gabriel Féron
ba48ff4273 Add cargo --no-verify test when checking that src dir was not modified while publishing 2018-05-28 13:59:40 +02:00
Eric Huss
3dbae343ac Fix passing --edition to rustdoc during doctests.
Fixes #5538
2018-05-15 09:29:34 -07:00
Alex Crichton
8413008937 Rename the rust manifest key to edition
This'll hopefully jive better with the terminology of "edition" throughout the
rest of Rust!
2018-05-03 11:45:04 -07:00
Kurtis Nusbaum
0b2aaaffe9 switch to using the --edition flag 2018-04-22 12:14:21 -07:00
Dale Wijnand
6828380e56
Move edition earlier in TomlManifest::to_real_manifest
and fix a typo in the error message
2018-04-20 19:45:59 +01:00
Kurtis Nusbaum
3bbe93cef6 rename epoch to edition 2018-04-01 11:01:28 -07:00
Alex Crichton
1e6828485e cargo fmt 2018-03-14 17:48:23 -07:00
Alex Crichton
2a063798eb Drop outdated hamcrest dependency
This hasn't been updated in awhile and in general we've been barely using it.
This drops the outdated dependency and vendors a small amount of the
functionality that it provided. I think eventually we'll want to transition away
from this method of assertions but I wanted to get this piece in to avoid too
much churn in one commit.
2018-03-01 11:03:54 -08:00
Alex Crichton
a4a3302d46 Package lock files in published crates
Previously we had logic to explicitly skip lock files but there's actually a
good case to read these from crates.io (#2263) so let's do so!

Closes #2263
2018-02-28 13:57:16 -08:00
André Rocha
c2ff988c9f Reorganize integration tests as one crate with many modules. Issue #4867. 2018-02-21 13:33:51 -05:00