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

Allow feature-gate tests to live in ui/ and migrate most of the tests from compile-fail #46532

Merged
merged 3 commits into from
Dec 7, 2017

Conversation

est31
Copy link
Member

@est31 est31 commented Dec 6, 2017

The PR consists of three commits:

  1. change tidy to allow feature-gate tests to live in ui/
  2. migrate some feature gate tests to ui/ with renaming only
  3. migrate some feature gate tests to ui/ with also removing // gate-test-... lines and renaming them to the standard feature-gate-<feat-name>.rs format.

@rust-highfive
Copy link
Collaborator

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@kennytm kennytm added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 6, 2017
@petrochenkov
Copy link
Contributor

Nice!
@bors r+

@bors
Copy link
Contributor

bors commented Dec 6, 2017

📌 Commit d80d4ad has been approved by petrochenkov

@kennytm kennytm added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 6, 2017
@bors
Copy link
Contributor

bors commented Dec 7, 2017

🔒 Merge conflict

@kennytm kennytm added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Dec 7, 2017
ui tests are the future, especially since the
recent improvement where we have gained
checking and requiring of //~ERROR comments.

The tidy feature-gate test check is intended
to be 50% an actual insurance that there is
a check, and 50% to be a teacher that such
checks are required.

With this commit applied, newbies might
interpret stuff wrongly and create tests
that don't fail but succeed instead.

This is not what feature gate tests are
for though. Therefore, in a later step,
when only ui tests are allowed to be feature
gate tests, we will add checking to ensure
that a file marked as gate test is actually
required to be a compilation failure.

Right now implementing such a check is a
bit annoying as one needs to only do it
when the compile-fail test is in the
ui test suite :/.
Renames only in this commit, and obviously
.stderr file additions.
We also rename some of the files to conform to the
feature-gate-<feat_name>.rs pattern that is most common.
@petrochenkov
Copy link
Contributor

@bors delegate+

@bors
Copy link
Contributor

bors commented Dec 7, 2017

✌️ @est31 can now approve this pull request

@est31
Copy link
Member Author

est31 commented Dec 7, 2017

@bors r+

@bors
Copy link
Contributor

bors commented Dec 7, 2017

📌 Commit 6dba3e6 has been approved by est31

@kennytm kennytm added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Dec 7, 2017
@kennytm
Copy link
Member

kennytm commented Dec 7, 2017

@bors p=1

@bors
Copy link
Contributor

bors commented Dec 7, 2017

⌛ Testing commit 6dba3e6 with merge 9c49f40...

bors added a commit that referenced this pull request Dec 7, 2017
Allow feature-gate tests to live in ui/ and migrate most of the tests from compile-fail

The PR consists of three commits:

1. change tidy to allow feature-gate tests to live in ui/
2. migrate some feature gate tests to ui/ with renaming only
3. migrate some feature gate tests to ui/ with also removing `// gate-test-...` lines and renaming them to the standard `feature-gate-<feat-name>.rs` format.
@bors
Copy link
Contributor

bors commented Dec 7, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: est31
Pushing 9c49f40 to master...

@bors bors merged commit 6dba3e6 into rust-lang:master Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants