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

Increasing test coverage #3104

Merged
merged 16 commits into from
Nov 8, 2024
Merged

Increasing test coverage #3104

merged 16 commits into from
Nov 8, 2024

Conversation

akanshaaa19
Copy link
Member

No description provided.

@akanshaaa19 akanshaaa19 changed the title Fix: Dip in test fixes Fix: Dip in test coverage percentage Sep 27, 2024
Copy link

github-actions bot commented Sep 27, 2024

@github-actions github-actions bot temporarily deployed to pull request September 27, 2024 08:04 Inactive
Copy link

codecov bot commented Sep 27, 2024

Codecov Report

Attention: Patch coverage is 75.92593% with 13 lines in your changes missing coverage. Please review.

Project coverage is 81.45%. Comparing base (9632222) to head (99d1572).
Report is 17 commits behind head on master.

Files with missing lines Patch % Lines
src/containers/Form/FormLayout.tsx 65.71% 8 Missing and 4 partials ⚠️
...c/routes/AuthenticatedRoute/AuthenticatedRoute.tsx 88.88% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3104      +/-   ##
==========================================
+ Coverage   80.97%   81.45%   +0.47%     
==========================================
  Files         323      320       -3     
  Lines       10351    10281      -70     
  Branches     2198     2187      -11     
==========================================
- Hits         8382     8374       -8     
+ Misses       1340     1300      -40     
+ Partials      629      607      -22     

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

Copy link

cypress bot commented Sep 27, 2024

Glific    Run #5359

Run Properties:  status check passed Passed #5359  •  git commit ae80e8afb4 ℹ️: Merge 99d157275cb5a556fbf87c7fa08cc8f3901d5489 into 963222288894aa93aa83a4036701...
Project Glific
Branch Review fix/test-cases
Run status status check passed Passed #5359
Run duration 25m 28s
Commit git commit ae80e8afb4 ℹ️: Merge 99d157275cb5a556fbf87c7fa08cc8f3901d5489 into 963222288894aa93aa83a4036701...
Committer Akansha Sakhre
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 169
View all changes introduced in this branch ↗︎

@github-actions github-actions bot temporarily deployed to pull request September 27, 2024 09:38 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 2, 2024 05:49 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 2, 2024 06:55 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 17, 2024 03:49 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 28, 2024 14:23 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 28, 2024 14:52 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 28, 2024 15:02 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 28, 2024 16:28 Inactive
@akanshaaa19 akanshaaa19 changed the title Fix: Dip in test coverage percentage Increasing test coverage Oct 28, 2024
@akanshaaa19 akanshaaa19 requested a review from kurund October 28, 2024 16:33
@github-actions github-actions bot temporarily deployed to pull request November 4, 2024 16:46 Inactive
@@ -1,6 +1,6 @@
{
"semi": true,
"printWidth": 100,
Copy link
Contributor

Choose a reason for hiding this comment

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

any specific reason for this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

the test coverage for AuthenticatedRoute file was not covering all lines because it was going to the next line

yarn.lock Outdated
@@ -5514,8 +5514,16 @@ streamx@^2.12.0, streamx@^2.12.5, streamx@^2.13.2, streamx@^2.14.0:
optionalDependencies:
bare-events "^2.2.0"

"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0:
name string-width-cjs
"string-width-cjs@npm:string-width@^4.2.0":
Copy link
Contributor

Choose a reason for hiding this comment

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

why is lock file updated?

src/containers/SettingList/Providers/Providers.test.tsx Outdated Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to pull request November 6, 2024 05:32 Inactive
@github-actions github-actions bot temporarily deployed to pull request November 6, 2024 05:48 Inactive
@akanshaaa19 akanshaaa19 requested a review from kurund November 7, 2024 15:52
@@ -152,6 +152,95 @@ export const FormLayout = ({
const [showConfirmationDialog, setShowConfirmationDialog] = useState(false);
const params = useParams();

const saveHandler = ({ languageId: languageIdValue, ...itemData }: any) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

any reason for moving these 2 function around?

Copy link
Member Author

Choose a reason for hiding this comment

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

earlier it was used before its declaration, which raised an error sometimes

@github-actions github-actions bot temporarily deployed to pull request November 8, 2024 04:58 Inactive
@kurund kurund merged commit 5391389 into master Nov 8, 2024
9 of 11 checks passed
@kurund kurund deleted the fix/test-cases branch November 8, 2024 14:05
@kurund
Copy link
Contributor

kurund commented Nov 8, 2024

Looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants