From c9df4329b8c6a4ace5fc53fa595dac22da6fec50 Mon Sep 17 00:00:00 2001 From: Bandhan Majumder <133476557+bandhan-majumder@users.noreply.github.com> Date: Sun, 26 Jan 2025 10:55:33 +0530 Subject: [PATCH 1/3] Added issue template for test issues --- .github/ISSUE_TEMPLATE/test.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/test.md diff --git a/.github/ISSUE_TEMPLATE/test.md b/.github/ISSUE_TEMPLATE/test.md new file mode 100644 index 00000000000..63ceea66e4f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/test.md @@ -0,0 +1,23 @@ +--- +name: Test Implementation Request +about: Write tests for an existing file in the project +title: "Test: [File Name]" +labels: testing +assignees: "" +--- +# Goal +The goal of this issue is to improve the code coverage for the file: `Example: src/resolvers/Chat/messages.ts` +# Tasks +1. Review the file to identify sections of code that are being ignored by Codecov or are not covered by tests. +2. Create or update test cases to ensure 100% coverage for the file. +3. Remove any `/* istanbul ignore */` or equivalent statements that bypass code coverage reporting, unless absolutely necessary. +# Resources +- Refer to the foundational documentation on writing test cases in the repository. +- Check the [Codecov report](https://app.codecov.io/gh/PalisadoesFoundation/talawa-api/tree/develop-postgres/src?displayType=list) for details on the uncovered lines. +# Acceptance Criteria +- All sections of the file are covered by tests. +- Code coverage for the file reaches 100%. +- PR created with necessary updates, passing all checks and reviews. +**Potential internship candidates** +Please read this if you are planning to apply for a Palisadoes Foundation internship +- https://github.com/PalisadoesFoundation/talawa/issues/359 From f38ed6a3a1ac693857d66a50385d9341f71e0851 Mon Sep 17 00:00:00 2001 From: Bandhan Majumder <133476557+bandhan-majumder@users.noreply.github.com> Date: Sun, 26 Jan 2025 11:08:20 +0530 Subject: [PATCH 2/3] updated report link --- .github/ISSUE_TEMPLATE/test.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/test.md b/.github/ISSUE_TEMPLATE/test.md index 63ceea66e4f..9f97db923ab 100644 --- a/.github/ISSUE_TEMPLATE/test.md +++ b/.github/ISSUE_TEMPLATE/test.md @@ -13,7 +13,7 @@ The goal of this issue is to improve the code coverage for the file: `Example: s 3. Remove any `/* istanbul ignore */` or equivalent statements that bypass code coverage reporting, unless absolutely necessary. # Resources - Refer to the foundational documentation on writing test cases in the repository. -- Check the [Codecov report](https://app.codecov.io/gh/PalisadoesFoundation/talawa-api/tree/develop-postgres/src?displayType=list) for details on the uncovered lines. +- Check the [Codecov report](https://app.codecov.io/gh/PalisadoesFoundation/talawa-api/) for details on the uncovered lines. # Acceptance Criteria - All sections of the file are covered by tests. - Code coverage for the file reaches 100%. From 9f6c6fdf7ba983b3ffbf73ff09624b614acdc7a1 Mon Sep 17 00:00:00 2001 From: Bandhan Majumder <133476557+bandhan-majumder@users.noreply.github.com> Date: Sun, 26 Jan 2025 11:38:54 +0530 Subject: [PATCH 3/3] Update test.md --- .github/ISSUE_TEMPLATE/test.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/test.md b/.github/ISSUE_TEMPLATE/test.md index 9f97db923ab..63ceea66e4f 100644 --- a/.github/ISSUE_TEMPLATE/test.md +++ b/.github/ISSUE_TEMPLATE/test.md @@ -13,7 +13,7 @@ The goal of this issue is to improve the code coverage for the file: `Example: s 3. Remove any `/* istanbul ignore */` or equivalent statements that bypass code coverage reporting, unless absolutely necessary. # Resources - Refer to the foundational documentation on writing test cases in the repository. -- Check the [Codecov report](https://app.codecov.io/gh/PalisadoesFoundation/talawa-api/) for details on the uncovered lines. +- Check the [Codecov report](https://app.codecov.io/gh/PalisadoesFoundation/talawa-api/tree/develop-postgres/src?displayType=list) for details on the uncovered lines. # Acceptance Criteria - All sections of the file are covered by tests. - Code coverage for the file reaches 100%.