-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
test : lint and few minor fixes #17549
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mithunsasidharan — unfortunately I don't think these changes can get merged. The first file — those comments reference github issues that they're testing. The second file includes the following comment "The following tests are copied from WPT. Modifications to them should be upstreamed first."
@apapirovski : As for the 1st file, I will remove it, but for the 2nd file changes, those were corrections as requested here. Can you confirm once ? If so, I'll close the PR ! |
@mithunsasidharan It was likely an oversight on the part of the person compiling that list. I would also mention that those changes are intended for Node.js Code and Learn events. They're intentionally simple things that can be used to introduce new contributors to the process of making their first contribution to Node.js. You're of course more than welcome to work on those things but in general I would recommend finding issues within the issue tracker or looking at the https://coverage.nodejs.org/ to find gaps in our test coverage. Also, please don't take this as me discouraging you from contributing. I truly appreciate all the PRs! Perhaps just trying to gently push you in a direction that you would likely find more engaging and would be more long-term beneficial. :) Also, don't hesitate to let me know if you need any assistance with writing or expanding tests. I'm happy to assist in any way that I can. |
@apapirovski Absolutely not, in fact its due to you and other reviewers continued support that I've been able to contribute whatever little I've. Definitely going to pick up test coverage next. Kindly suggest any reference doc or instructions I can follow to get started ! Thanks again for all your amazing support 👍 😄 |
@apapirovski : I'll close this PR ! |
Feel free to check out the following labels: https://github.com/nodejs/node/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 Also, re: code coverage, the site at https://coverage.nodejs.org/ has nightly updated coverage for the master branch. If you click through to the JS coverage (today's: https://coverage.nodejs.org/coverage-06e1b0386196f8f8/index.html), you'll note that it's got links for all the folders and files within lib. Feel free to browse through it and look for anywhere that's red or yellow, which means that code or branch is not covered by any tests. For example, the If you want insight into how to test an internal function, check out |
@apapirovski : Above certainly helps. Will get started with it next. As for the PR merge reminder ping, my apologies again. I live in India and so I see most of the PRs get reviewed my late night time and hence sometimes its difficult to follow up instantly for rebase or replying to any review comment. Sorry again for that. Thanks much ! |
Btw here's the PR that introduced that function: #16497 It's likely that a couple of PRs could be squeezed out of it:
I would start with 1 as we definitely need tests. Re: 2, that will also depend on other Collaborators so I can't guarantee that there will be agreement on using it. |
@apapirovski : Got you. I'll get started with 1 for now ! As for 2, how do we generally discuss and get a consensus on such thoughts ? Is it by opening an issue ? For now, I'll focus on 1. Thanks. |
In this case, the best option would be to just do some work on 2 and then open a PR. I don't think it's going to be too contentious. We might need a few rounds of changes to potentially improve For controversial PRs, best course of action is to open an issue with a description of the problem and outlining the proposed solution. |
@apapirovski : That helps. So let me get started with 1 and complete before I start with 2. Thanks ! |
@apapirovski : Had a question. I see |
Note the |
@apapirovski : Thanks. Since, I'm into writing UT in node for first time there is slight confusion. So I've come up with a scenario to begin with which works fine as below :
But I'm not quite sure how to set value to |
The most sensible way to do a full test for
|
@apapirovski : Thanks. That makes sense and I hope this is what it gets translated to as below:
I've added the tests in new file |
I think the assert.ok(process.stdout.writable);
assert.ok(process.stderr.writable);
// Support legacy API
assert.strictEqual(typeof process.stdout.fd, 'number');
assert.strictEqual(typeof process.stderr.fd, 'number'); Also, there's no need for |
|
|
@apapirovski thanks... not quite sure if
Above seems to be failing. Not quite able to get this in place! |
@apapirovski
|
Lint and some other minor fixes. Files modified :
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test