Skip to content

Commit adf1e5d

Browse files
authored
[MOB-8449] Remove Generated Mock Files (#225)
* Remove generated mock files * Run `build_runner` before tests in CI
1 parent b7ece9e commit adf1e5d

File tree

5 files changed

+6
-863
lines changed

5 files changed

+6
-863
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
- run: bundle exec danger
6969
- run: flutter doctor
7070
- run: flutter packages get
71+
- run: flutter pub run build_runner build --delete-conflicting-outputs
7172
- run: flutter test --coverage
7273
- run: bash <(curl -s https://codecov.io/bash)
7374
- run: dartanalyzer --options analysis_options.yaml --fatal-warnings lib
@@ -83,6 +84,7 @@ jobs:
8384
- run: bundle exec danger
8485
- run: flutter doctor
8586
- run: flutter packages get
87+
- run: flutter pub run build_runner build --delete-conflicting-outputs
8688
- run: flutter test --coverage
8789

8890
ios_tests:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Generated files
2+
*.mocks.dart
3+
14
# Miscellaneous
25
*.class
36
*.log

analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ analyzer:
3838
# see https://github.com/dart-lang/sdk/issues/28463
3939
- 'lib/i18n/stock_messages_*.dart'
4040
- 'lib/src/http/**'
41+
- 'test/*.mocks.dart'
4142

4243
linter:
4344
rules:

test/instabug_flutter_test.mocks.dart

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)