Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add function to count and find problems with missing tests#96

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

raiman264
Copy link
Contributor

What was added

An output to the console when you run all the tests so you can see how many problems are there and if there is any missing Test

Thanks to this I figured out that 2 of the test files had wrong naming

example output:
Screenshot 2024-10-11 at 9 06 21 p m

Checklist before requesting a review

  • I have checked theguide for contributions.
  • I have added the description at the top of the solution file.
  • I have added a test file for the problem.
  • I have added an entry to theREADME file with a link to the new file.
  • I have run linter (npx eslint LeetcodeProblems LeetcodeProblemsTests) and unit tests (node Test.js) and they pass.More info.

Check theguide andthis PR example.

Copy link
Owner

@ignacio-chiazzoignacio-chiazzo left a comment

Choose a reason for hiding this comment

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

Love it! Thanks!

Test.js Outdated
return problems;
};

const test_all = async function () {

Choose a reason for hiding this comment

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

Could you rename the following functions?

  • test_all ->runAllTests
  • solve ->solveProblem

Also, let's usecamelCase everywhere. I noticed we have a mix. A linter rule could solve this too (not need to do it here).

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

updated all variables and functions in this file to becamelCase
I also added the eslint rule to make it visible and noticed there are a lot of issues

I can create another PR to solve all of those linter issues

Choose a reason for hiding this comment

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

Love it! that'd be amazing.

Copy link
Owner

@ignacio-chiazzoignacio-chiazzo left a comment

Choose a reason for hiding this comment

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

Nice! thank you.

Screenshot 2024-10-15 at 7 34 46 PM

raiman264 reacted with heart emoji
@ignacio-chiazzoignacio-chiazzo merged commit96a9cfd intoignacio-chiazzo:masterOct 15, 2024
1 check passed
@raiman264raiman264 deleted the find-missing-tests branchOctober 16, 2024 14:49
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ignacio-chiazzoignacio-chiazzoignacio-chiazzo approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@raiman264@ignacio-chiazzo

[8]ページ先頭

©2009-2025 Movatter.jp