8000 Info: bloc_test 8.0.1 introduced breaking changes compared to 8.0.0 when importing mockito · Issue #2510 · felangel/bloc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Info: bloc_test 8.0.1 introduced breaking changes compared to 8.0.0 when importing mockito #2510
Closed
@b3arco

Description

@b3arco

Describe the bug
bloc_test version 8.0.1 introduces a breaking change in specific setups compared to version 8.0.0.
See PR #2473 for the update.
In particular "feat: export mocktail" causes this if in in a test class, the package mockito was also imported and mocktail was not.

I realize it is was probably unintended in version 8.0.0 to begin with that it was possible to import both mockito and bloc_test and use them side-by-side. However, this did work just fine.

I had test code that was working as expected.
When I now update to bloc_test 8.0.1, I get syntax errors and my code fails to compile.

To Reproduce
Steps to reproduce the behavior:

  1. Have a test class that uses bloc_test 8.0.0 for bloc tests and mockito for mocks in that class.
  2. Update bloc_test to 8.0.1
  3. See syntax errors

Screenshots
Testing code that imports bloc_test and mockito. It defines a class Mock Client that extends Mock and implements Client. The word Mock is marked with an error

Additional context
I don't want to blame anyone. The update is already released and I can imagine that this was originally planned for the 8.0.0 release, so I guess it's fine. I just wanted to bring this to your attention.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpkg:bloc_testThis issue is related to the bloc_test package

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0