[GH-ISSUE #358] [Unit Test] Flutter Bloc Unit Test - Listeners and Events #168

Closed
opened 2026-03-23 20:33:06 +00:00 by mirror · 14 comments
Owner

Originally created by @annieappflowy on GitHub (Feb 20, 2022).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/358

Write unit tests for the blocs (located at frontend/app_flowy/lib/workspace/infrastructure/repos):

  1. Test each event input and output
  2. Test listeners of each bloc and verify the input and output
Originally created by @annieappflowy on GitHub (Feb 20, 2022). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/358 Write unit tests for the blocs (located at `frontend/app_flowy/lib/workspace/infrastructure/repos`): 1. Test each event input and output 2. Test listeners of each bloc and verify the input and output
Author
Owner

@moksh-mahajan commented on GitHub (Jun 3, 2022):

@annieappflowy Are you mentioning blocs located at frontend/app_flowy/lib/workspace/application/, since there is no infrastructure directory inside frontend/app_flowy/lib/workspace/ ?

<!-- gh-comment-id:1145577931 --> @moksh-mahajan commented on GitHub (Jun 3, 2022): @annieappflowy Are you mentioning blocs located at `frontend/app_flowy/lib/workspace/application/`, since there is no infrastructure directory inside `frontend/app_flowy/lib/workspace/ `?
Author
Owner

@appflowy commented on GitHub (Jun 3, 2022):

@annieappflowy Are you mentioning blocs located at frontend/app_flowy/lib/workspace/application/, since there is no infrastructure directory inside frontend/app_flowy/lib/workspace/ ?

The infra layer was implemented in Rust. You can check out this https://appflowy.gitbook.io/docs/essential-documentation/contribute-to-appflowy/architecture/domain-driven-design

<!-- gh-comment-id:1145684305 --> @appflowy commented on GitHub (Jun 3, 2022): > @annieappflowy Are you mentioning blocs located at `frontend/app_flowy/lib/workspace/application/`, since there is no infrastructure directory inside `frontend/app_flowy/lib/workspace/ `? The infra layer was implemented in Rust. You can check out this https://appflowy.gitbook.io/docs/essential-documentation/contribute-to-appflowy/architecture/domain-driven-design
Author
Owner

@moksh-mahajan commented on GitHub (Jun 3, 2022):

Thanks @appflowy
I will definitely take a look.

<!-- gh-comment-id:1146330440 --> @moksh-mahajan commented on GitHub (Jun 3, 2022): Thanks @appflowy I will definitely take a look.
Author
Owner

@annieappflowy commented on GitHub (Jul 18, 2022):

Hi @moksh-mahajan, any update on this? As we have more people on the team, I can assign a mentor who can offer help :D

<!-- gh-comment-id:1187132767 --> @annieappflowy commented on GitHub (Jul 18, 2022): Hi @moksh-mahajan, any update on this? As we have more people on the team, I can assign a mentor who can offer help :D
Author
Owner

@Nike682631 commented on GitHub (Aug 11, 2022):

@appflowy is this issue available to work on?

<!-- gh-comment-id:1212423715 --> @Nike682631 commented on GitHub (Aug 11, 2022): @appflowy is this issue available to work on?
Author
Owner

@annieappflowy commented on GitHub (Aug 12, 2022):

Hi @moksh-mahajan , are you still working on this?

<!-- gh-comment-id:1212656506 --> @annieappflowy commented on GitHub (Aug 12, 2022): Hi @moksh-mahajan , are you still working on this?
Author
Owner

@moksh-mahajan commented on GitHub (Aug 12, 2022):

Hi @annieappflowy
I'm not currently working on this issue.
@Nike682631 can work on this.

<!-- gh-comment-id:1212661837 --> @moksh-mahajan commented on GitHub (Aug 12, 2022): Hi @annieappflowy I'm not currently working on this issue. @Nike682631 can work on this. ✅
Author
Owner

@annieappflowy commented on GitHub (Aug 26, 2022):

@Nike682631 would you like to take this?

<!-- gh-comment-id:1228473821 --> @annieappflowy commented on GitHub (Aug 26, 2022): @Nike682631 would you like to take this?
Author
Owner

@Nike682631 commented on GitHub (Aug 26, 2022):

@annieappflowy Yes

<!-- gh-comment-id:1228481965 --> @Nike682631 commented on GitHub (Aug 26, 2022): @annieappflowy Yes
Author
Owner

@saksham-gt commented on GitHub (Aug 29, 2022):

Hey @annieappflowy, is there any active development on this? I would like to work on this if this is available.

<!-- gh-comment-id:1230375640 --> @saksham-gt commented on GitHub (Aug 29, 2022): Hey @annieappflowy, is there any active development on this? I would like to work on this if this is available.
Author
Owner

@Nike682631 commented on GitHub (Aug 29, 2022):

@glitchpop-frenzy hey saksham, yes I'm working on this

<!-- gh-comment-id:1230378390 --> @Nike682631 commented on GitHub (Aug 29, 2022): @glitchpop-frenzy hey saksham, yes I'm working on this
Author
Owner

@saksham-gt commented on GitHub (Aug 29, 2022):

Cool, let me know if I can be of any help. 😄

<!-- gh-comment-id:1230380431 --> @saksham-gt commented on GitHub (Aug 29, 2022): Cool, let me know if I can be of any help. 😄
Author
Owner

@annieappflowy commented on GitHub (Sep 13, 2022):

@Nike682631 , can you update the progress on this issue?
@glitchpop-frenzy , thanks for offering the help. If you are interested in this topic, @LucasXu0 can find some interesting work for you to do. Just let us know!

<!-- gh-comment-id:1244959560 --> @annieappflowy commented on GitHub (Sep 13, 2022): @Nike682631 , can you update the progress on this issue? @glitchpop-frenzy , thanks for offering the help. If you are interested in this topic, @LucasXu0 can find some interesting work for you to do. Just let us know!
Author
Owner

@kelvinwieth commented on GitHub (Oct 15, 2023):

Anyone working on this one? I'm interested, but first want to take a look. We need to test all blocs from frontend/appflowy_flutter/lib/workspace/application/, right?

<!-- gh-comment-id:1763411281 --> @kelvinwieth commented on GitHub (Oct 15, 2023): Anyone working on this one? I'm interested, but first want to take a look. We need to test all blocs from `frontend/appflowy_flutter/lib/workspace/application/`, right?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#168
No description provided.