Skip to content

Improve instructions for adding a new test #881

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

Merged
merged 3 commits into from
Sep 19, 2020
Merged

Conversation

jyn514
Copy link
Member

@jyn514 jyn514 commented Sep 15, 2020

  • Add a section for library tests
  • Expand section on rustdoc tests

From rust-lang/rust#76268 (comment)

- Add a section for library tests
- Expand section on rustdoc tests
@jyn514 jyn514 added the S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content label Sep 15, 2020
@jyn514
Copy link
Member Author

jyn514 commented Sep 15, 2020

r? @workingjubilee

@workingjubilee
Copy link
Member

The command "MAX_LINE_LENGTH=100 bash ci/check_line_lengths.sh src/**/*.md" failed and exited with 1 during .

Copy link
Member

@workingjubilee workingjubilee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good (though obviously I don't have the relevant privileges to make much of it). I think I may have also wanted to point at https://rustc-dev-guide.rust-lang.org/tests/intro.html#compiletest-test-suites but that's nonessential.

@jyn514
Copy link
Member Author

jyn514 commented Sep 15, 2020

I think I may have also wanted to point at https://rustc-dev-guide.rust-lang.org/tests/intro.html#compiletest-test-suites but that's nonessential.

That's already linked on the sidebar, I'm not sure where it would go in the text itself.

image

- Say what should be considered a library test
- Mention adding error numbers to doc tests
- Link to #ui section
- Line wrapping
It shouldn't have been a link in the first place.

Co-authored-by: Yuki Okushi <[email protected]>
@spastorino spastorino merged commit 4470641 into master Sep 19, 2020
@jyn514 jyn514 deleted the jyn514-patch-1 branch September 20, 2020 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants