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

Updated the CONTRIBUTING.md Testing section to cover jest and vitest #3277

Merged

Conversation

aadhil2k4
Copy link
Contributor

@aadhil2k4 aadhil2k4 commented Jan 14, 2025

What kind of change does this PR introduce?

Documentation

Issue Number:

Fixes #3270

If relevant, did you update the documentation?

Yes

Does this PR introduce a breaking change?

No

Checklist

CodeRabbit AI Review

  • I have reviewed and addressed all critical issues flagged by CodeRabbit AI
  • I have implemented or provided justification for each non-critical suggestion
  • I have documented my reasoning in the PR comments where CodeRabbit AI suggestions were not implemented

Test Coverage

  • I have written tests for all new changes/features
  • I have verified that test coverage meets or exceeds 95%
  • I have run the test suite locally and all tests pass

Have you read the contributing guide?

Yes

Summary by CodeRabbit

  • Documentation
    • Updated contribution guidelines with comprehensive testing instructions for Jest and Vitest frameworks.
    • Added detailed guidance for running tests, viewing code coverage, and debugging test processes.
    • Introduced new subsections for "General," "Testing," "Jest Testing," "Vitest Testing," "Combined testing and coverage," and "Test Code Coverage."
    • Enhanced instructions for running all tests and viewing combined code coverage.
  • Chores
    • Updated .eslintignore to exclude markdown files from linting.

Copy link
Contributor

coderabbitai bot commented Jan 14, 2025

Walkthrough

The pull request updates the CONTRIBUTING.md file by adding new subsections under the "Contributing Code" section: "General," "Testing," "Jest Testing," "Vitest Testing," "Combined testing and coverage," and "Test Code Coverage." These subsections provide detailed instructions for contributors on running tests and viewing code coverage using both Jest and Vitest frameworks. Additionally, the .eslintignore file is modified to include a rule that ignores markdown files from linting.

Changes

File Change Summary
CONTRIBUTING.md Added subsections: "General," "Testing," "Jest Testing," "Vitest Testing," "Combined testing and coverage," and "Test Code Coverage" with detailed commands for testing and coverage.
.eslintignore Added rule to ignore markdown files (*.md) from linting.

Assessment against linked issues

Objective Addressed Explanation
Create separate sections for Jest and Vitest testing [#3270]
Include instructions for running single tests [#3270]
Include instructions for running all tests [#3270]
Include instructions for viewing code coverage [#3270]
Create a section for combined testing and coverage [#3270]

Possibly related PRs

Suggested reviewers

  • palisadoes

Poem

🐰 Hop, hop, testing we go!
Jest and Vitest, now in the know
Documentation shines so bright
Helping devs test with delight
Code coverage, our rabbit's glee! 🧪


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

Our Pull Request Approval Process

Thanks for contributing!

Testing Your Code

Remember, your PRs won't be reviewed until these criteria are met:

  1. We don't merge PRs with poor code quality.
    1. Follow coding best practices such that CodeRabbit.ai approves your PR.
  2. We don't merge PRs with failed tests.
    1. When tests fail, click on the Details link to learn more.
    2. Write sufficient tests for your changes (CodeCov Patch Test). Your testing level must be better than the target threshold of the repository
    3. Tests may fail if you edit sensitive files. Ask to add the ignore-sensitive-files-pr label if the edits are necessary.
  3. We cannot merge PRs with conflicting files. These must be fixed.

Our policies make our code better.

Reviewers

Do not assign reviewers. Our Queue Monitors will review your PR and assign them.
When your PR has been assigned reviewers contact them to get your code reviewed and approved via:

  1. comments in this PR or
  2. our slack channel

Reviewing Your Code

Your reviewer(s) will have the following roles:

  1. arbitrators of future discussions with other contributors about the validity of your changes
  2. point of contact for evaluating the validity of your work
  3. person who verifies matching issues by others that should be closed.
  4. person who gives general guidance in fixing your tests

CONTRIBUTING.md

Read our CONTRIBUTING.md file. Most importantly:

  1. PRs with issues not assigned to you will be closed by the reviewer
  2. Fix the first comment in the PR so that each issue listed automatically closes

Other

  1. 🎯 Please be considerate of our volunteers' time. Contacting the person who assigned the reviewers is not advised unless they ask for your input. Do not @ the person who did the assignment otherwise.
  2. Read the CONTRIBUTING.md file make

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (3)
CONTRIBUTING.md (3)

Line range hint 103-141: Add language specifiers to code blocks for proper syntax highlighting.

The Jest testing section is well-documented, but the code blocks should specify the language for proper syntax highlighting and markdown compliance.

Apply these changes to the code blocks:

-```
+```bash
npm run test path/to/test/file

- +bash
npm run test --watchAll=false


-```
+```bash
npm run test --watchAll=false --coverage /path/to/test/file

- +bash
npm run test --watchAll=false --coverage

🧰 Tools
🪛 Markdownlint (0.37.0)

107-107: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


113-113: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


119-119: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


125-125: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


133-133: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🪛 GitHub Actions: PR Workflow

[error] Unauthorized file modification. This file is protected and requires the 'ignore-sensitive-files-pr' label to modify or delete.


142-165: Add language specifiers to Vitest code blocks.

The Vitest testing section is well-structured, but needs language specifiers for the code blocks.

Apply these changes:

-```
+```bash
npm run test:vitest /path/to/test/file

- +bash
npm run test:vitest


-```
+```bash
npm run test:vitest:coverage /path/to/test/file

- +bash
npm run test:vitest:coverage

🧰 Tools
🪛 Markdownlint (0.37.0)

145-145: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


151-151: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


157-157: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


163-163: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🪛 GitHub Actions: PR Workflow

[error] Unauthorized file modification. This file is protected and requires the 'ignore-sensitive-files-pr' label to modify or delete.


168-180: Add language specifiers to combined testing code blocks.

The combined testing section provides valuable information but needs language specifiers for the code blocks.

Apply these changes:

-```
+```bash
npm run test && npm run test:vitest

- +bash
npm run test --watchAll=false --coverage && npm run test:vitest:coverage

🧰 Tools
🪛 Markdownlint (0.37.0)

172-172: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


178-178: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🪛 GitHub Actions: PR Workflow

[error] Unauthorized file modification. This file is protected and requires the 'ignore-sensitive-files-pr' label to modify or delete.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 334f0f7 and 3e1cf0a.

📒 Files selected for processing (1)
  • CONTRIBUTING.md (3 hunks)
🧰 Additional context used
🪛 Markdownlint (0.37.0)
CONTRIBUTING.md

107-107: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


113-113: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


119-119: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


125-125: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


145-145: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


151-151: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


157-157: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


163-163: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


172-172: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


178-178: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🪛 GitHub Actions: PR Workflow
CONTRIBUTING.md

[error] Unauthorized file modification. This file is protected and requires the 'ignore-sensitive-files-pr' label to modify or delete.

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Analyse Code With CodeQL (javascript)
🔇 Additional comments (2)
CONTRIBUTING.md (2)

20-21: LGTM! Well-structured TOC additions.

The new testing sections are logically placed under the "Contributing Code" section.

🧰 Tools
🪛 GitHub Actions: PR Workflow

[error] Unauthorized file modification. This file is protected and requires the 'ignore-sensitive-files-pr' label to modify or delete.


Line range hint 1-181: Add required label for protected file modification.

The PR is attempting to modify a protected file (CONTRIBUTING.md). To proceed:

  1. The PR needs the 'ignore-sensitive-files-pr' label
  2. Request a maintainer to add this label to allow modifications to protected files
✅ Verification successful

Protected file modification requires authorization label

The review comment is accurate. CONTRIBUTING.md is explicitly listed as a protected file in the repository's workflow configuration. Changes to this file require the 'ignore-sensitive-files-pr' label, which is currently not present on the PR.

To proceed:

  • Request a maintainer to add the 'ignore-sensitive-files-pr' label to authorize the modification
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Verify if the PR has the required label
gh pr view 3277 --json labels -q '.labels[].name' | grep 'ignore-sensitive-files-pr' || echo "Required label missing"

Length of output: 139


Script:

#!/bin/bash
# Check for any file protection patterns in the repository
fd -H "protect|sensitive" -t f --max-depth 2 | while read -r file; do
  echo "=== $file ==="
  head -n 20 "$file"
done

# Also check if there's a GitHub workflow that enforces this
fd "sensitive|protect" .github/workflows/ | while read -r file; do
  echo "=== $file ==="
  cat "$file"
done

Length of output: 120


Script:

#!/bin/bash
# List and examine all workflow files
echo "=== Workflow Files ==="
fd . .github/workflows/ -e yml -e yaml -x cat {}

Length of output: 32674

🧰 Tools
🪛 Markdownlint (0.37.0)

145-145: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


151-151: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


157-157: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


163-163: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


172-172: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


178-178: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🪛 GitHub Actions: PR Workflow

[error] Unauthorized file modification. This file is protected and requires the 'ignore-sensitive-files-pr' label to modify or delete.

coderabbitai[bot]
coderabbitai bot previously approved these changes Jan 14, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🔭 Outside diff range comments (1)
CONTRIBUTING.md (1)

Line range hint 1-155: Add required label for protected file modification.

The pipeline is failing because CONTRIBUTING.md is a protected file that requires the 'ignore-sensitive-files-pr' label for modifications.

Please add the 'ignore-sensitive-files-pr' label to this PR to allow modifications to this protected file.

🧰 Tools
🪛 Markdownlint (0.37.0)

106-106: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


110-110: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


114-114: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


118-118: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


123-123: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


132-132: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


136-136: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


140-140: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


144-144: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


149-149: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


153-153: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🪛 GitHub Actions: PR Workflow

[error] Unauthorized file modification. This file is protected and requires the 'ignore-sensitive-files-pr' label to modify or delete.

🧹 Nitpick comments (3)
CONTRIBUTING.md (3)

104-129: Add language specifications to code blocks and improve formatting.

The Jest Testing section content is accurate, but the code blocks need language specifications for better syntax highlighting and markdown compliance.

Apply these changes:

-         ```
+         ```bash
          npm run test path/to/test/file
          ```

-         ```
+         ```bash
          npm run test --watchAll=false
          ```

-         ```
+         ```bash
          npm run test --watchAll=false --coverage /path/to/test/file
          ```

-         ```
+         ```bash
          npm run test --watchAll=false --coverage
          ```

-         ```
+         ```bash
          npm run jest-preview
          npm run test --watchAll=false --coverage
          ```
🧰 Tools
🪛 Markdownlint (0.37.0)

106-106: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


110-110: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


114-114: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


118-118: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


123-123: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🪛 GitHub Actions: PR Workflow

[error] Unauthorized file modification. This file is protected and requires the 'ignore-sensitive-files-pr' label to modify or delete.


130-146: Add language specifications to Vitest code blocks.

Similar to the Jest section, add language specifications to the code blocks.

Apply these changes:

-         ```
+         ```bash
          npm run test:vitest /path/to/test/file
          ```

-         ```
+         ```bash
          npm run test:vitest
          ```

-         ```
+         ```bash
          npm run test:vitest:coverage /path/to/test/file
          ```

-         ```
+         ```bash
          npm run test:vitest:coverage
          ```
🧰 Tools
🪛 Markdownlint (0.37.0)

132-132: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


136-136: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


140-140: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


144-144: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🪛 GitHub Actions: PR Workflow

[error] Unauthorized file modification. This file is protected and requires the 'ignore-sensitive-files-pr' label to modify or delete.


147-155: Add language specifications to Combined testing code blocks.

Add language specifications to maintain consistency across all code blocks.

Apply these changes:

-         ```
+         ```bash
          npm run test && npm run test:vitest
          ```

-         ```
+         ```bash
          npm run test --watchAll=false --coverage && npm run test:vitest:coverage
          ```
🧰 Tools
🪛 Markdownlint (0.37.0)

149-149: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


153-153: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🪛 GitHub Actions: PR Workflow

[error] Unauthorized file modification. This file is protected and requires the 'ignore-sensitive-files-pr' label to modify or delete.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3e1cf0a and e5723f8.

📒 Files selected for processing (1)
  • CONTRIBUTING.md (2 hunks)
🧰 Additional context used
🪛 Markdownlint (0.37.0)
CONTRIBUTING.md

106-106: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


110-110: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


114-114: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


118-118: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


123-123: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


132-132: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


136-136: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


140-140: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


144-144: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


149-149: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


153-153: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🪛 GitHub Actions: PR Workflow
CONTRIBUTING.md

[error] Unauthorized file modification. This file is protected and requires the 'ignore-sensitive-files-pr' label to modify or delete.

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Analyse Code With CodeQL (javascript)
🔇 Additional comments (1)
CONTRIBUTING.md (1)

20-22: LGTM! Table of Contents updated correctly.

The new testing sections are properly added to the TOC structure.

🧰 Tools
🪛 GitHub Actions: PR Workflow

[error] Unauthorized file modification. This file is protected and requires the 'ignore-sensitive-files-pr' label to modify or delete.

coderabbitai[bot]
coderabbitai bot previously approved these changes Jan 15, 2025
@palisadoes palisadoes added the ignore-sensitive-files-pr The contributor has a legitimate reason for editiing protected files label Jan 15, 2025
@palisadoes
Copy link
Contributor

Please fix the failing test. Markdown filled will need to be excluded from linting

coderabbitai[bot]
coderabbitai bot previously approved these changes Jan 15, 2025
Copy link

codecov bot commented Jan 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.96%. Comparing base (334f0f7) to head (eff0545).
Report is 4 commits behind head on develop-postgres.

Additional details and impacted files
@@                  Coverage Diff                  @@
##           develop-postgres    #3277       +/-   ##
=====================================================
+ Coverage              8.56%   89.96%   +81.40%     
=====================================================
  Files                   309      330       +21     
  Lines                  7954     8519      +565     
  Branches               1763     1884      +121     
=====================================================
+ Hits                    681     7664     +6983     
+ Misses                 7196      601     -6595     
- Partials                 77      254      +177     
Flag Coverage Δ
combined 89.96% <ø> (?)
jest 8.53% <ø> (?)
vitest 89.96% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@meetulr
Copy link
Contributor

meetulr commented Jan 15, 2025

@aadhil2k4 also add the section for testing the entire repo.

@meetulr meetulr self-requested a review January 15, 2025 12:01
@aadhil2k4
Copy link
Contributor Author

aadhil2k4 commented Jan 15, 2025

@aadhil2k4 also add the section for testing the entire repo.

The combined tests part is for testing the entire repo.

Copy link
Contributor

@palisadoes palisadoes left a comment

Choose a reason for hiding this comment

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

See comments. Preview this in a markdown viewer to make sure it looks OK. Also ensure that the table of contents indentation is appropriate with testing having it section and all its sub headings lining up properly

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Show resolved Hide resolved
CONTRIBUTING.md Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (3)
CONTRIBUTING.md (3)

101-104: Fix heading format and address trailing colon.

The content clearly explains the test coverage requirements, but the heading format needs adjustment.

-   1. ### General:
+   1. ### General
🧰 Tools
🪛 Markdownlint (0.37.0)

101-101: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


106-159: Add language specifications to code blocks and fix heading format.

The testing commands are well-documented, but the markdown formatting needs improvement:

  1. Add language specifications to code blocks (e.g., bash or shell)
  2. Remove trailing colon from heading

Example fix for code blocks:

-```
+```bash
npm run test path/to/test/file

And for heading:
```diff
-   2. ### Testing:
+   2. ### Testing
🧰 Tools
🪛 Markdownlint (0.37.0)

106-106: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


109-109: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


113-113: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


117-117: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


121-121: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


126-126: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


135-135: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


139-139: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


143-143: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


147-147: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


153-153: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


157-157: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


161-186: Fix formatting issues and update macOS reference.

The test coverage documentation is comprehensive, but needs the following improvements:

  1. Remove trailing colon from heading
  2. Add language specifications to code blocks
  3. Update "MacOS" to "macOS" for correct branding

Example fixes:

-      #### Test Code Coverage:
+      #### Test Code Coverage

-```
+```bash
npm install

-packages can be found for Windows and MacOS.
+packages can be found for Windows and macOS.


<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 LanguageTool</summary>

[grammar] ~173-~173: The operating system from Apple is written “macOS”.
Context: ...r packages can be found for Windows and MacOS.          - The currently acceptable co...

(MAC_OS)

</details>
<details>
<summary>🪛 Markdownlint (0.37.0)</summary>

161-161: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)

---

166-166: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

177-177: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

181-181: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

</details>

</details>

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**Configuration used: .coderabbit.yaml**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between d0aa741460dbd5cbe4c7d17b6bc783e9d07cd44b and 361017ca57c1e3d6f5c26596994af35ff56a05f1.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `CONTRIBUTING.md` (2 hunks)

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>🪛 LanguageTool</summary>

<details>
<summary>CONTRIBUTING.md</summary>

[grammar] ~173-~173: The operating system from Apple is written “macOS”.
Context: ...r packages can be found for Windows and MacOS.          - The currently acceptable co...

(MAC_OS)

</details>

</details>
<details>
<summary>🪛 Markdownlint (0.37.0)</summary>

<details>
<summary>CONTRIBUTING.md</summary>

101-101: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)

---

106-106: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)

---

161-161: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)

---

109-109: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

113-113: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

117-117: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

121-121: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

126-126: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

135-135: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

139-139: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

143-143: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

147-147: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

153-153: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

157-157: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

166-166: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

177-177: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

181-181: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

</details>

</details>

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (2)</summary>

* GitHub Check: Test Application
* GitHub Check: Analyse Code With CodeQL (javascript)

</details>

<details>
<summary>🔇 Additional comments (2)</summary><blockquote>

<details>
<summary>CONTRIBUTING.md (2)</summary>

`20-25`: **LGTM! Table of Contents is well-structured.**

The new testing sections are properly organized in the table of contents.

---

Line range hint `1-186`: **Consider excluding markdown files from linting.**

Based on the PR comments, tests are failing due to markdown linting issues. Consider adding `.md` files to `.eslintignore` to resolve these failures.

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 LanguageTool</summary>

[grammar] ~173-~173: The operating system from Apple is written “macOS”.
Context: ...r packages can be found for Windows and MacOS.          - The currently acceptable co...

(MAC_OS)

</details>
<details>
<summary>🪛 Markdownlint (0.37.0)</summary>

101-101: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)

---

106-106: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)

---

161-161: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)

---

109-109: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

113-113: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

117-117: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

121-121: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

126-126: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

135-135: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

139-139: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

143-143: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

147-147: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

153-153: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

157-157: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

166-166: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

177-177: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

181-181: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

</details>

</details>

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

coderabbitai[bot]
coderabbitai bot previously approved these changes Jan 15, 2025
@aadhil2k4
Copy link
Contributor Author

@palisadoes I have added screenshots of the previews.

SCR-20250115-tpbv SCR-20250115-tphc SCR-20250115-tplz SCR-20250115-tpok

Copy link
Contributor

@palisadoes palisadoes left a comment

Choose a reason for hiding this comment

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

See comments

CONTRIBUTING.md Outdated Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (4)
CONTRIBUTING.md (4)

109-134: Improve code block formatting.

  1. Add language specifiers to all code blocks
  2. Fix indentation to match document structure
  3. Consider adding descriptions for each command

Example fix:

-      ```
+      ```bash
 npm run test path/to/test/file

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 Markdownlint (0.37.0)</summary>

109-109: null
Headings must start at the beginning of the line

(MD023, heading-start-left)

---

111-111: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

115-115: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

119-119: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

123-123: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

128-128: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

</details>

</details>

---

`153-161`: **Maintain consistent formatting with previous sections.**

1. Fix heading indentation
2. Add language specifiers to code blocks
3. Consider adding explanatory text about when to use combined testing

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 Markdownlint (0.37.0)</summary>

153-153: null
Headings must start at the beginning of the line

(MD023, heading-start-left)

---

155-155: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

159-159: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

</details>

</details>

---

`175-175`: **Fix macOS spelling.**

Correct the spelling of Apple's operating system.

```diff
-The `genhtml` command is part of the Linux `lcov` package. Similar packages can be found for Windows and MacOS.
+The `genhtml` command is part of the Linux `lcov` package. Similar packages can be found for Windows and macOS.
🧰 Tools
🪛 LanguageTool

[grammar] ~175-~175: The operating system from Apple is written “macOS”.
Context: ...r packages can be found for Windows and MacOS. - The currently acceptable co...

(MAC_OS)


188-188: Improve image references.

  1. Use consistent image naming (avoid spaces and special characters)
  2. Add alt text that describes the image content
  3. Consider using relative paths consistently

Example:

-![Debugging Test Demo](</public/images/codecov/homescrenn%20(1).jpg>)
+![CodeCov Homepage Screenshot](/public/images/codecov/homepage.jpg)
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 361017c and eff0545.

📒 Files selected for processing (1)
  • CONTRIBUTING.md (2 hunks)
🧰 Additional context used
🪛 LanguageTool
CONTRIBUTING.md

[grammar] ~175-~175: The operating system from Apple is written “macOS”.
Context: ...r packages can be found for Windows and MacOS. - The currently acceptable co...

(MAC_OS)

🪛 Markdownlint (0.37.0)
CONTRIBUTING.md

109-109: null
Headings must start at the beginning of the line

(MD023, heading-start-left)


135-135: null
Headings must start at the beginning of the line

(MD023, heading-start-left)


153-153: null
Headings must start at the beginning of the line

(MD023, heading-start-left)


163-163: null
Headings must start at the beginning of the line

(MD023, heading-start-left)


101-101: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


106-106: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


163-163: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


111-111: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


115-115: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


119-119: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


123-123: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


128-128: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


137-137: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


141-141: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


145-145: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


149-149: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


155-155: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


159-159: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


168-168: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


179-179: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


183-183: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: Check Python Code Style
  • GitHub Check: Test Application
  • GitHub Check: Analyse Code With CodeQL (javascript)
🔇 Additional comments (3)
CONTRIBUTING.md (3)

101-104: Fix section formatting.

The heading and content need to be adjusted:

  1. Remove the colon from the heading
  2. Move the heading to the left margin
-   ### General:
+### General

-      - We need to get to 100% test coverage for the app. We periodically increase the desired test coverage for our pull requests to meet this goal.
-      - Pull requests that don't meet the minimum test coverage levels will not be accepted. This may mean that you will have to create tests for code you did not write. You can decide which part of the code base needs additional tests if this happens to you.
+- We need to get to 100% test coverage for the app. We periodically increase the desired test coverage for our pull requests to meet this goal.
+- Pull requests that don't meet the minimum test coverage levels will not be accepted. This may mean that you will have to create tests for code you did not write. You can decide which part of the code base needs additional tests if this happens to you.
🧰 Tools
🪛 Markdownlint (0.37.0)

101-101: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


106-108: Fix section formatting.

The heading needs to be adjusted:

  1. Remove the colon
  2. Move to the left margin
-   ### Testing:
+### Testing
🧰 Tools
🪛 Markdownlint (0.37.0)

106-106: Punctuation: ':'
Trailing punctuation in heading

(MD026, no-trailing-punctuation)


135-151: Apply the same formatting fixes as Jest section.

The same improvements are needed here:

  1. Add language specifiers to code blocks
  2. Fix indentation
🧰 Tools
🪛 Markdownlint (0.37.0)

135-135: null
Headings must start at the beginning of the line

(MD023, heading-start-left)


137-137: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


141-141: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


145-145: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


149-149: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

@palisadoes palisadoes merged commit 7e650f9 into PalisadoesFoundation:develop-postgres Jan 15, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore-sensitive-files-pr The contributor has a legitimate reason for editiing protected files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants