Skip to content

Commit

Permalink
Migrating from Mockito to Mocktail
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedLSayed9 committed Jan 25, 2023
1 parent ed2ae51 commit 95a1c81
Show file tree
Hide file tree
Showing 56 changed files with 1,041 additions and 4,795 deletions.
20 changes: 2 additions & 18 deletions build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#This fix False generation of mocks as code generators need to be run in a certain order (Mockito should go last)
#https://github.com/dart-lang/mockito/issues/345
#Also, this speed up code generation: https://codewithandrea.com/tips/speed-up-code-generation-build-runner-dart-flutter
#Speed up code generation: https://codewithandrea.com/tips/speed-up-code-generation-build-runner-dart-flutter

targets:
$default:
Expand All @@ -22,18 +20,4 @@ targets:
enabled: true
generate_for:
include:
- lib/**.dart

# Disable mockito's builder to run it after other code is generated.
mockito|mockBuilder:
enabled: false

# Adjust this name by yourself.
run_mockito:
# Make sure this target runs after the target above.
dependencies: ["$default"]
# Only run mockito's builder.
auto_apply_builders: false
builders:
mockito|mockBuilder:
enabled: true
- lib/**.dart
Loading

0 comments on commit 95a1c81

Please sign in to comment.