-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Clarify/Improve instructions related to testing when contributing a pull request #20854
Comments
It means there were no patterns found related to:
Meaning that no tests were added. Now it may happen that no tests are needed for the change, in which case
Can you clarify what're you looking for exactly? Currently the testing page basically points to the test files ( |
Hi! That makes sense! I think I needed to read 4 different documents in addition to the error message though, and I feel like it could be modified so it points people in the right direction from the start. Maybe change the error message so it contains the description with a link first and the failing file pattern last or so? And that link points to a wiki page that directly says “If you want to contribute, you need to ceate at least one test. The following kinds of tests exist: …” Just a suggestion, maybe there’s a better way! |
Sounds reasonable to me 👍 Adding appropriate labels so we can take care of it. |
took a look at this and still feel it is a very relevant point- finding the steps are hard and take a lot of clicks. Assigning myself to get it on my list of items |
Originally posted by @flying-sheep in #20842 (comment)
Hi, I’m unsure what to do regarding testing. I guess “just add a unit test” is probably correct, but I didn’t find clear instructions. Maybe this could be improved?
CONTRIBUTING.md links to the wiki main page. It doesn’t have in-text links to anything about contributing or testing, but there’s a sidebar with all wiki pages. Maybe it should mention the right page to go to when trying to contribute?
The wiki page Submitting a pull request doesn’t mention what tests to add. Maybe it should say “Go to the Testing page and add one or more tests that best fit your change”?
The wiki page Testing mentions a lot of options in great detail, but not what exactly to do when creating a PR. Maybe it should do that?
The check output is also not very clear: This “Check for changed files” run says
The file pattern in there implies I should ask a test plan, but from context I assume this means that I should add a unit test (or in case my change wouldn’t be testable, add a test plan document), is that right? Maybe the file pattern should be removed or explained
The text was updated successfully, but these errors were encountered: