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

test for individual post screen written #2300

Conversation

AVtheking
Copy link

What kind of change does this PR introduce?

I have written test for individual_post.dart

Issue Number:

Fixes #2148

Did you add tests for your changes?
Yes

Copy link

github-actions bot commented Jan 2, 2024

Our Pull Request Approval Process

We have these basic policies to make the approval process smoother for our volunteer team.

Testing Your Code

Please make sure your code passes all tests. Our test code coverage system will fail if either of these two conditions occur:

  1. The overall code coverage drops below the target threshold of the repository
  2. Any file in the pull request has code coverage levels below the repository threshold

The process helps maintain the overall reliability of the code base and is a prerequisite for getting your PR approved. Assigned reviewers regularly review the PR queue and tend to focus on PRs that are passing.

Reviewers

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

Other

🎯 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.

Copy link

codecov bot commented Jan 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c7852f5) 94.02% compared to head (c7d55b2) 94.58%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2300      +/-   ##
===========================================
+ Coverage    94.02%   94.58%   +0.55%     
===========================================
  Files          157      157              
  Lines         7533     7533              
===========================================
+ Hits          7083     7125      +42     
+ Misses         450      408      -42     

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

@Dante291
Copy link

Dante291 commented Jan 2, 2024

You don't need to push your pubspec.lock file for the test.

@AVtheking
Copy link
Author

I have removed pubspec.llock file

@noman2002
Copy link
Member

@AVtheking Its not removed yet. Please have a look and fix the failing test.

@AVtheking
Copy link
Author

When I removed the pubspec.lock file then it was failing test

@AVtheking
Copy link
Author

Please review it an suggest changes if any

Dante291 and others added 5 commits January 4, 2024 23:33
…alisadoesFoundation#2290)

* Comprehensive Language Translation Enhancement for App Globalization

* adding more translations

* testing

* test

* test

* test

* proper format for translation files

* formating

* formating

* formating

* fixing translation

* fixing linting errors

* writing test for missing lines

* writing test for missing lines

* writing test for missing lines

* fixing translations

* fixing translations

* fixing translations

* fixing translations
…lisadoesFoundation#2302)

Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 35 to 41.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](tj-actions/changed-files@v35...v41)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@AVtheking AVtheking requested a review from palisadoes as a code owner January 4, 2024 18:03
@palisadoes palisadoes removed their request for review January 4, 2024 18:40
@palisadoes
Copy link
Contributor

@AVtheking please work with the reviewers to get this approved.
I won't be revisiting it

@AVtheking
Copy link
Author

@palisadoes ok sir

@AVtheking
Copy link
Author

@Ayush0Chaudhary @literalEval please review it and suggest changes if any so that I can
work on more issues

@noman2002
Copy link
Member

@AVtheking Revert the changes in pubspec.lock. Its not required.

Copy link

@Ayush0Chaudhary Ayush0Chaudhary left a comment

Choose a reason for hiding this comment

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

if you dont know how to remove change in lock file

copy the lock file from develop file on github and paste it in you IDE and make a new commit

pubspec.lock Outdated
Comment on lines 1016 to 1039
leak_tracker:
dependency: transitive
description:
name: leak_tracker
sha256: "41b90ceaec6d79819f31e975e61d479516efe701dea35f891b2f986c1b031422"
url: "https://pub.dev"
source: hosted
version: "9.0.17"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
sha256: "54808cfcfa87dbc0d74c61ac063d624adf1bd5c0407301f32b06c783c60dc4ca"
url: "https://pub.dev"
source: hosted
version: "2.0.0"
leak_tracker_testing:
dependency: transitive
description:
name: leak_tracker_testing
sha256: "7e71be3c161472f6c9158ac8875dd8de575060d60b5d159ebca3600ea32c9116"
url: "https://pub.dev"
source: hosted
version: "1.0.6"

Choose a reason for hiding this comment

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

why this?

Copy link
Author

Choose a reason for hiding this comment

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

I have copied the lock file from develop branch

pubspec.lock Outdated
@@ -1899,4 +1899,4 @@ packages:
version: "3.1.2"
sdks:
dart: ">=3.2.0 <3.13.0"
flutter: ">=3.16.0"
flutter: ">=3.16.0"
Copy link
Member

Choose a reason for hiding this comment

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

Why is this a change ? Did you add or remove the EOF line ?

Copy link
Author

Choose a reason for hiding this comment

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

No I do not remove or add the EOF line

Copy link
Author

Choose a reason for hiding this comment

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

Maybe it is because I have taken the lock file from develop branch and pasted in my branch

Copy link
Member

Choose a reason for hiding this comment

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

You can try merging your branch with develop. Remove the pubspec in a commit, merge with develop, and the do the final push. That should do. Also, it's a nice strategy to keep merging with develop to avoid these conflicts here.

Copy link
Author

Choose a reason for hiding this comment

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

ok

Copy link
Author

Choose a reason for hiding this comment

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

I have done merging with develop but still this change is showing

AVtheking and others added 6 commits January 9, 2024 19:43
…alisadoesFoundation#2290)

* Comprehensive Language Translation Enhancement for App Globalization

* adding more translations

* testing

* test

* test

* test

* proper format for translation files

* formating

* formating

* formating

* fixing translation

* fixing linting errors

* writing test for missing lines

* writing test for missing lines

* writing test for missing lines

* fixing translations

* fixing translations

* fixing translations

* fixing translations
@Dante291
Copy link

Dante291 commented Jan 9, 2024

just manually add EOL in pubspec file and commit

@AVtheking
Copy link
Author

I have added EOL still showing change in that file

@AVtheking AVtheking requested a review from literalEval January 9, 2024 18:34
literalEval
literalEval previously approved these changes Jan 10, 2024
Copy link
Member

@literalEval literalEval left a comment

Choose a reason for hiding this comment

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

LGTM

@palisadoes
Copy link
Contributor

Please fix conflicting file. Regenerate if necessary

@AVtheking
Copy link
Author

I have fixed the conflicts please review it

@palisadoes palisadoes merged commit 928f616 into PalisadoesFoundation:develop Jan 10, 2024
7 of 8 checks passed
palisadoes added a commit to palisadoes/talawa that referenced this pull request Jan 10, 2024
* test for individual post screen written

* removed pubspec.lock

* fix falling test case"

* removed pubspec.lock

* Comprehensive Language Translation Enhancement for App Globalization (PalisadoesFoundation#2290)

* Comprehensive Language Translation Enhancement for App Globalization

* adding more translations

* testing

* test

* test

* test

* proper format for translation files

* formating

* formating

* formating

* fixing translation

* fixing linting errors

* writing test for missing lines

* writing test for missing lines

* writing test for missing lines

* fixing translations

* fixing translations

* fixing translations

* fixing translations

* Bump tj-actions/changed-files from 35 to 41 in /.github/workflows (PalisadoesFoundation#2302)

Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 35 to 41.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](tj-actions/changed-files@v35...v41)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add: GraphQl Test (PalisadoesFoundation#2298)

* Update pull-request.yml

* fix failing test case

* added pubspec.lock from develop

* removed pubspec.lock

* lock file

* Comprehensive Language Translation Enhancement for App Globalization (PalisadoesFoundation#2290)

* Comprehensive Language Translation Enhancement for App Globalization

* adding more translations

* testing

* test

* test

* test

* proper format for translation files

* formating

* formating

* formating

* fixing translation

* fixing linting errors

* writing test for missing lines

* writing test for missing lines

* writing test for missing lines

* fixing translations

* fixing translations

* fixing translations

* fixing translations

* fix

* fix

* fix

* fix

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Parag Gupta <103507835+Dante291@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ayush Raghuwanshi <62144720+AyushRaghuvanshi@users.noreply.github.com>
Co-authored-by: Peter Harrison <16875803+palisadoes@users.noreply.github.com>
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.

Write tests for individual_post.dart
7 participants