-
-
Notifications
You must be signed in to change notification settings - Fork 498
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
Views: Create tests for organization_feed.dart #1236
Comments
i wolud like to solve this issue please assign to me |
Unassigned due to inactivity. |
@noman2002 @palisadoes @TheHazeEffect please assign this issue to me! |
I am facing a issue solving this issue. talawa/lib/view_model/after_auth_view_models/feed_view_models/organization_feed_view_model.dart Lines 51 to 67 in 311b205
the above code uses a stream and set value of _post variable But all the test written return null, I was not able to find a test where actual post list was returned @noman2002 @palisadoes can you help me with this I have achieved 90% coverage but small part require the actual post to test talawa/lib/views/after_auth_screens/feed/organization_feed.dart Lines 60 to 64 in 311b205
|
talawa/test/widget_tests/after_auth_screens/events/explore_events_test.dart Lines 158 to 178 in 311b205
one posiible solution is this but it return a null value |
@noman2002 @TheHazeEffect Do you have any thoughts on how to resolve this? |
@palisadoes @noman2002 @TheHazeEffect I implemented this and 11 is getting printed but same thing is not happening in its viewmodel |
@literalEval can you suggest something?? |
@Ayush0Chaudhary I believe your reference of the view model is different then the one that the widget is using, I mean both are different instances. I was having the same issue while writing tests for a widget and I worked it around by referencing the view model used by the widget directly.
This way you can be sure that you are referencing the exact same view model. |
@literalEval You can try on this issue. |
Sure. I will take this issue once I am done with the issues I am already assigned with. |
* draft * draft2 * draft * draft * draft 2 * Fixes #1236 Create tests for organization_feed.dart * rmv unused imports * testing issue * Improve Coverage * Update create_event_view_model.dart * Update organization_feed_view_model.dart * Update organization_feed_test.dart * Update organization_feed_test.dart
This is reopened because test coverage for this file is not acceptable. |
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue. |
Can you please assign this issue to me. |
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue. |
Unassigning due to inactivity. |
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue. |
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue. |
This issue did not get any activity in the past 180 days and thus has been closed. Please check if the newest release or develop branch has it fixed. Please, create a new issue if the issue is not fixed. |
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue. |
The Talawa code base needs to be 100% reliable. This means we need to have 100% test code coverage.
Tests need to be written for file
lib/views/after_auth_screens/feed/organization_feed.dart
test/views/after_auth_screens/feed/organization_feed_test.dart
. You may need to create the appropriate directory structure to do this.IMPORTANT:
Please refer to the parent issue on how to implement these tests correctly:
PR Acceptance Criteria
The text was updated successfully, but these errors were encountered: