Skip to content
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

Merge package:mockito #2293

Open
wants to merge 632 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
632 commits
Select commit Hold shift + click to select a range
4edae1a
Add notes to CHANGELOG and NULL_SAFETY_README re: fallback generators
srawlins May 25, 2021
35d2a37
Documentation fixes:
srawlins May 26, 2021
825e213
Follow Dart file conventions | Add more detail to the description fie…
fscopel May 28, 2021
eb921b5
Stop expecting that DartObject.type is ParameterizedType.
scheglov May 27, 2021
c3eb1c7
Fix test about fallback generator signature.
srawlins May 27, 2021
a7401a3
Generate a proper mock class when the mocked class overrides `toStrin…
srawlins Jun 1, 2021
e032616
Migrate off deprecated analyzer API: nonSubtypableClasses.
srawlins Jun 1, 2021
1208c23
Override `toString` implementation on generated Fakes in order to mat…
srawlins Jun 3, 2021
eea0324
Use proper generic types in a generated mock class which comes from a…
srawlins Jun 4, 2021
bf0d7ec
Delete travis.sh
mit-mit Jun 18, 2021
cafe331
Merge pull request dart-lang/mockito#432 from dart-lang/mit-mit-patch-1
mit-mit Jun 18, 2021
cc1b0c8
Fix spelling and grammar typos in README.md
lauweijie Jun 28, 2021
ccdf50a
Improve fallback generator support in a few cases:
srawlins Jun 9, 2021
edfba5e
Prepare to make LibraryElement.name non-nullable.
scheglov Jun 29, 2021
f4e9a6a
Import cc1b0c84a55fd459c95032e6c204b20c6965ebfa from GitHub
srawlins Jul 1, 2021
c3d042c
Import 825e213cf977bcd4b3aa3f427b14b527c58edad9 from GitHub
srawlins Jul 1, 2021
cbd969b
Wrap and improve package description.
srawlins Jul 2, 2021
0bfd051
Ignore implementation_imports
srawlins Jul 2, 2021
a079974
Explicitly declare a Future<void> when using Future.value
srawlins Jul 2, 2021
f409901
Support Function and Future<Function> return types
srawlins Jul 15, 2021
b51fc96
Include type argument when returning a fallback value for an `Iterabl…
srawlins Jul 15, 2021
96c0929
Support analyzer >=1.0.0 <3.0.0
srawlins Jul 18, 2021
221903a
Prefer to import libraries which export types that need referencing.
srawlins Jul 18, 2021
8a6de13
Fix null check required for analyzer <2.0.0
srawlins Jul 18, 2021
59019a6
Ignore avoid_setters_without_getters lint in generated code.
srawlins Jul 20, 2021
f1c784c
Fix two related bugs affected by overriding toString methods.
srawlins Jul 20, 2021
9b7b4f3
Properly override methods which have been overridden in the mixin hie…
srawlins Jul 30, 2021
5195e49
Ensure that generated Fake classes have unique names.
srawlins Aug 5, 2021
70ecfa8
Fix wrong import for method parameters with default value factories (…
kuhnroyal Aug 10, 2021
d949d35
Default value w/ redirecting constructor fix followups:
srawlins Aug 10, 2021
3f06f87
Bump to version 5.0.15.
srawlins Aug 20, 2021
72f20f4
typo fix
pq Aug 23, 2021
f8aa89b
Update README.md
thechinkysight Jul 16, 2021
58dcd28
Update README.md
thechinkysight Aug 29, 2021
87a5c0e
Add ignore_for_file: camel_case_types to generated file
RTodorov Sep 8, 2021
fa24bb6
Fix pre-existing HintCode.UNNECESSARY_TYPE_CHECK_TRUE
scheglov Sep 2, 2021
3251006
Stop using deprecated DartType.aliasElement/aliasArguments
scheglov Sep 10, 2021
ca7b013
Import https://github.com/dart-lang/mockito/commit/72f20f42c29ca19cc2…
srawlins Sep 10, 2021
9bf75d1
Import https://github.com/dart-lang/mockito/commit/58dcd289694a675f6d…
srawlins Sep 10, 2021
6b6b408
Properly reference types in type arguments on a class-to-mock.
srawlins Sep 10, 2021
9c7e179
Import https://github.com/dart-lang/mockito/commit/87a5c0eb9a19b6ede7…
srawlins Sep 10, 2021
c4c8144
Bump to 5.0.16 with two fixes.
srawlins Sep 13, 2021
8389163
Change "dartfmt" to "dart format". (dart-lang/mockito#480)
munificent Oct 1, 2021
f271814
Report when a class-to-be-mocked has an _inherited_ member with a pri…
srawlins Sep 15, 2021
71b7142
Do not needlessly implement `toString` unless additional parameters …
srawlins Sep 29, 2021
cfdeaaa
Support analyzer 3.0.0
srawlins Dec 20, 2021
c9aa82d
Add ignore all lints comment to generated code
Pante Dec 21, 2021
4514996
Fix typo
Pante Dec 21, 2021
4282f7e
Fix a typo
tijoforyou Nov 12, 2021
634a0e3
Remove old Travis script
srawlins Jan 18, 2022
27ac4ef
Remove dead null checks and improve doc references.
srawlins Oct 1, 2021
3975abd
Exclude tool/travis.sh from mockito's copybara.
srawlins Jan 6, 2022
8f373b1
Import https://github.com/dart-lang/mockito/commit/cfdeaaaca75bd51b60…
srawlins Jan 6, 2022
efec10d
Import https://github.com/dart-lang/mockito/commit/4282f7eeffa5140869…
srawlins Jan 6, 2022
45e2342
Import https://github.com/dart-lang/mockito/commit/c9aa82d02be0f7a5c8…
srawlins Jan 6, 2022
eae2e0f
Remove check for test/test_api incompatibility.
srawlins Jan 6, 2022
29b2279
Comply with package:lints lint rules
srawlins Jan 18, 2022
c0f3722
In creating mocks for a pre-null-safe library, opt out generated code.
srawlins Jan 20, 2022
0309843
Properly override methods with covariant parameters.
srawlins Jan 21, 2022
0e67f18
Mention mixins in best practices
natebosch Jan 24, 2022
270f191
Remove stray print statement
srawlins Jan 26, 2022
9fb304f
Generate toString override in pre-null safe code if a new signature i…
srawlins Jan 27, 2022
0a9869c
Improve messaging in MissingStubError.
srawlins Jan 27, 2022
aae454c
Fix incorrect error when mocking a parameter with non-nullable inner …
srawlins Jan 28, 2022
2ea799b
Add overrideUnsupportedMembers option to MockSpec
srawlins Feb 8, 2022
0938766
Switch to a feature version bump
natebosch Feb 9, 2022
4966a11
Mark a few functions as `@useResult` to prevent accidental misuse.
srawlins Feb 9, 2022
e695e4c
Automated g4 rollback of changelist 427490997.
srawlins Feb 9, 2022
ec6f6c2
Bump to version 5.1.0
srawlins Feb 10, 2022
3e7e3b6
Fix generation of methods with return type of `FutureOr<T>`.
srawlins Mar 5, 2022
ddef210
Support `@GenerateMocks` annotations on `import` and `export` directi…
srawlins Mar 14, 2022
447be29
clarify docs for unsupportedMembers.
srawlins Apr 6, 2022
101a1e6
Fix compile errors in Flutter 3.0
fzyzcjy May 13, 2022
b2803c9
Populate the pubspec 'repository' field.
devoncarew Apr 19, 2022
7ef3d7b
Import https://github.com/dart-lang/mockito/pull/533
srawlins May 16, 2022
5260d7d
Release mockito 5.2.0
srawlins May 16, 2022
bbecf91
Fix ISS example readme links.
kasipavankumar Jun 4, 2022
341580b
Annotate the mock library import in examples
natebosch May 27, 2022
9b4dd12
Mockito fix: allow unsupported methods and fallback methods that retu…
davidmorgan Jun 3, 2022
d153490
Import https://github.com/dart-lang/mockito/pull/537
srawlins Jun 6, 2022
eb7f2d2
Minor grammar fix in the readme
NamanShergill Jul 10, 2022
9dac73d
Update the example build_runner commands.
srawlins Jun 15, 2022
24f62d6
Don't expect that `part` directive alway includes the referenced file.
scheglov Jul 7, 2022
36cef0f
Avoid name conflicts with dart:core
srawlins Jul 7, 2022
e549273
When reporting an error with an unrevivable parameter, refer to the c…
srawlins Jul 8, 2022
fb7edf4
Minor grammar fix in the readme
srawlins Jul 11, 2022
2f7617b
Stop using deprecated DartType.displayName
scheglov Jul 18, 2022
3145e11
Allow mixing types into generated mocks.
srawlins Jul 19, 2022
3d1a6cc
Introduce new `@GenerateNiceMocks` annotation and `onMissingStub` option
yanok Jul 21, 2022
5bf014f
Improve an error message to indicate which MockSpec has an error.
srawlins Jul 21, 2022
2d69ac0
Add `SmartFake` and fix the `MissingStubError` message
yanok Jul 22, 2022
d78bdff
Migrate off of deprecated analyzer APIs
srawlins Jul 27, 2022
088c026
Ignore deprecated use of `returnNullOnMissingStub`
srawlins Jul 28, 2022
cfd0040
Include `required` keyword in function types to match overridden func…
srawlins Jul 28, 2022
9d54b29
Bump to 5.3.0
srawlins Jul 28, 2022
7ad9a23
Bump SDK version in order to use enhanced enums
srawlins Jul 28, 2022
aa2aa8e
Bump to code_builder ^4.2.0 for namedRequiredParameters
srawlins Jul 28, 2022
afee25f
Bump min dependency on code_builder
natebosch Aug 4, 2022
c6e4dd5
Stop using deprecated declarations, prepare for analyzer breaking cha…
srawlins Aug 12, 2022
8ac980b
Check the annotation AST for presence of explicit type args
srawlins Aug 16, 2022
9b6ccda
Check for type arguments that turned into `dynamic`
srawlins Aug 16, 2022
063b4ee
Improve the error message in the case of an unknown type-to-mock.
srawlins Aug 18, 2022
e61e2ee
Reference `@GenerateNiceMocks` in documentation.
srawlins Aug 22, 2022
8ad7804
Stop using deprecated declarations, prepare for analyzer breaking cha…
srawlins Aug 22, 2022
759dd6c
code_builder import from GitHub.
srawlins Aug 24, 2022
4c0e9ae
Stop using deprecated declarations, prepare for analyzer breaking cha…
srawlins Aug 24, 2022
4e5340e
Restrict the exception for CAST_FROM_NULL_ALWAYS_FAILS
srawlins Aug 29, 2022
11f9710
Allow generating a mock class which includes overriding members with …
srawlins Aug 29, 2022
11abceb
Expand private-in-signature support to getters and setters
srawlins Sep 1, 2022
309f338
Include `required` keyword in functions used as default return values.
srawlins Sep 1, 2022
b144d3f
Automated g4 rollback of changelist 471650729.
srawlins Sep 2, 2022
627013a
Automated g4 rollback of changelist 471719348.
srawlins Sep 7, 2022
b27cc6b
Mockito codegen: use fallbackGenerator when present to create a defau…
srawlins Sep 8, 2022
2664b31
Bump SDK to 2.17 and code_builder to 4.3.0
srawlins Sep 13, 2022
039a409
Bump analyzer to support 5.0.0
srawlins Sep 22, 2022
12db588
Require analyzer 5.2.0
srawlins Oct 25, 2022
3a81256
make mockito unsupportedMembers tolerate names with $s in them.
srawlins Sep 19, 2022
044e69e
Import https://github.com/dart-lang/mockito/pull/572
srawlins Sep 27, 2022
53ab453
Add `ByteData` from `dart:typed_data` to special cases
srawlins Sep 30, 2022
ae4c315
Generate method overrides even then source lib is not null-safe
srawlins Oct 13, 2022
4f418ae
Automated g4 rollback of changelist 480854047.
srawlins Oct 13, 2022
a133dec
Avoid `Future.value(null)` as a dummy return value.
srawlins Oct 24, 2022
a044bd4
Import https://github.com/dart-lang/mockito/pull/578
srawlins Oct 26, 2022
a74af68
Bump minimum SDK version for use of enhanced enums.
srawlins Nov 8, 2022
498c769
blast_repo fixes (dart-lang/mockito#584)
devoncarew Nov 9, 2022
d9d3a7f
Bump actions/checkout from 2 to 3
dependabot[bot] Nov 9, 2022
648783a
Bump dart-lang/setup-dart from 1.0 to 1.3
dependabot[bot] Nov 9, 2022
1333d27
blast_repo fixes (dart-lang/mockito#587)
kevmoo Nov 14, 2022
0f5e696
Generate method overrides even then source lib is not null-safe
Dec 2, 2022
aa23400
Automated g4 rollback of changelist 492410078.
Dec 2, 2022
8c07d0e
Add override for `Object.operator==` in `SmartFake`
Dec 6, 2022
13c7ee5
Generate method overrides even then source lib is not null-safe
Dec 6, 2022
a67b658
Stop using deprecated analyzer APIs
srawlins Dec 9, 2022
a0a7b61
Override `SmartFake.toString` to be super-verbose
Dec 12, 2022
bb3a457
Migrate from no-implicit-casts to strict-casts
srawlins Jan 9, 2023
263d65d
blast_repo fixes
devoncarew Jan 19, 2023
c64fce8
GitHub Sync (dart-lang/mockito#602)
srawlins Jan 20, 2023
39954ba
generate code before we analyze (dart-lang/mockito#601)
devoncarew Jan 20, 2023
cba0ae7
Bump actions/checkout from 3.1.0 to 3.3.0 (dart-lang/mockito#599)
dependabot[bot] Jan 23, 2023
6727ea6
Bump dart-lang/setup-dart from 1.3 to 1.4 (dart-lang/mockito#600)
dependabot[bot] Jan 30, 2023
848a4d4
Latest build_web_compilers, move to pkg:lints, fix breaks (dart-lang/…
kevmoo Jan 30, 2023
0ed0ddf
Fix violations of `unnecessary_parenthesis` lint
srawlins Feb 8, 2023
6ada44e
Add `ignore_for_file: use_of_void_result`
srawlins Feb 10, 2023
59bcd68
Change `void` to `dynamic` when overriding method arguments
srawlins Feb 13, 2023
0913029
Relax mixin criteria
AsturaPhoenix Jan 9, 2023
2e8b27a
GitHub Sync (dart-lang/mockito#614)
natebosch Mar 24, 2023
8f7bc0c
Expand pub constraint on test_api (dart-lang/mockito#615)
natebosch Mar 24, 2023
19bef79
Bump actions/checkout from 3.3.0 to 3.5.0
dependabot[bot] Apr 1, 2023
94e8bc3
Bump dart-lang/setup-dart from 1.4.0 to 1.5.0
dependabot[bot] Apr 2, 2023
f78adfd
Run CI with Dart 2.19 and dev
Apr 26, 2023
d0e0f96
Fix violations of `prefer_final_locals`, `prefer_final_in_for_each` l…
oprypin Apr 11, 2023
b081923
Deprecate the mixingIn argument to MockSpec
natebosch Apr 13, 2023
8bdb585
Keep generated mock files at language version 2.19
oprypin Apr 25, 2023
7b3c396
Fix the type variable capture problem
Apr 26, 2023
c356bda
First part of Dart3 support in Mockito
Apr 26, 2023
4e18e86
Require Dart SDK >= 2.19
Apr 26, 2023
1de1bcf
Remove unused local variable
Apr 26, 2023
416b9fb
Bump actions/checkout from 3.5.0 to 3.5.2 (dart-lang/mockito#626)
dependabot[bot] May 1, 2023
3b93eda
Import `packge:matcher` directly instead of `test_api`
natebosch May 2, 2023
d07932a
Add `returnInOrder` to `Mock`
danielgomezrico Jan 15, 2023
2fa222f
Merge pull request dart-lang/mockito#597 from danielgomezrico:feat/re…
copybara-github May 12, 2023
fb26ace
Fix for InvalidType
May 15, 2023
b696fd9
Let users provide dummy values for types
May 17, 2023
2dd8cf5
Only check formatting with the stable SDK
May 17, 2023
9e20c40
Extend using run-time dummy values to Futures
May 19, 2023
dddd9ba
blast_repo fixes
devoncarew May 18, 2023
f007ae9
Don't abort codegen on return type being a type variable
May 22, 2023
6526356
Prepare to publish
natebosch May 22, 2023
73baf66
Don't try to fake unfakable classes
May 23, 2023
cdc3dfd
Fix violations of `prefer_final_locals`, `prefer_final_in_for_each` l…
oprypin May 24, 2023
b7b51d5
Expand constraint on package:http
natebosch May 25, 2023
60bb31c
Add support for records
Jun 1, 2023
673880f
Prepare for NamedType breaking change in the analyzer.
Jun 1, 2023
7b0ddd8
Fix the unresolved types if used as ignored type-alias arguments
Jun 2, 2023
5d809f8
Prepare to publish
natebosch Jun 10, 2023
2baccce
Internal change
Jun 27, 2023
93c23ef
Require analyzer 5.12.0
Jun 30, 2023
e50a434
Add a note on only running codegen on files under `test/` by default
Jun 30, 2023
447055a
Bump actions/checkout from 3.5.2 to 3.5.3 (dart-lang/mockito#669)
dependabot[bot] Jul 1, 2023
50f5ead
Use `FunctionTypedElement.type` while generating method overrides
Jul 5, 2023
bbe5c19
Rollback of "Use `FunctionTypedElement.type` while generating method …
Jul 5, 2023
177af7f
Add example of mocking callbacks
natebosch Jul 10, 2023
7ff4f58
Second attempt to fix "not found" error for type vars in bounds
Jul 12, 2023
c7d7bfc
Disable deprecated member findings in generated code
Jul 14, 2023
b12c555
Internal change
Jul 22, 2023
b8180a3
Allow the latest package:analyzer
natebosch Aug 4, 2023
0f7f66e
Make MockBuilder support build_extensions option.
LuisDuarte1 Aug 10, 2023
ea8b6d0
Update lib/src/builder.dart
LuisDuarte1 Aug 16, 2023
e39d456
Replace double-quotes with single quotes
LuisDuarte1 Aug 16, 2023
771708f
Make builder not merge generic extension.
LuisDuarte1 Aug 17, 2023
511b1a0
Update lib/src/builder.dart
LuisDuarte1 Aug 17, 2023
5d7876b
Format files
LuisDuarte1 Aug 18, 2023
8acf79a
Merge pull request dart-lang/mockito#685 from LuisDuarte1:feature/bui…
copybara-github Aug 18, 2023
f4541eb
Fix analysis errors in example directory
parlough Aug 15, 2023
4fff797
Merge pull request dart-lang/mockito#686 from parlough:fix/example-an…
copybara-github Aug 23, 2023
53d891a
Add a best practice sentence about data models
natebosch Aug 28, 2023
e6ec8db
Bump actions/checkout from 3.5.3 to 3.6.0 (dart-lang/mockito#692)
dependabot[bot] Sep 1, 2023
335e0ce
Add a missing dummy `bool` value
Sep 19, 2023
8474c87
Bump actions/checkout from 3.6.0 to 4.1.0 (dart-lang/mockito#698)
dependabot[bot] Oct 1, 2023
2e62192
Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (dart-lang/mockito#699)
dependabot[bot] Oct 1, 2023
801ef4d
Fix Mockito formatting for recent Dart versions
Oct 5, 2023
b8d5951
Use 3.1.3 as stable SDK
Oct 4, 2023
39273e7
Use SDK 3.0.0 for stable tests
Oct 5, 2023
af7b3a1
Change default dummy value for `String` to contain some info
Oct 6, 2023
214ed7f
Undo the formatting fix
Oct 6, 2023
455ef25
Don't try to compare fakes to real objects
Oct 6, 2023
c99057c
Change `!= null` to `is T` to handle "double nullable" case
Oct 18, 2023
15fb53c
Remove deprecated `returnNullOnMissingStub` and `OnMissingStub.return…
Oct 26, 2023
7e4cf58
Remove unneeded deprecation warning disable comment
Oct 26, 2023
d8f2dbb
Use Dart SDK 3.1.0 for format check
Oct 26, 2023
6038d6e
Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (dart-lang/mockito#712)
dependabot[bot] Nov 1, 2023
a8a6d01
Bump actions/checkout from 4.1.0 to 4.1.1 (dart-lang/mockito#713)
dependabot[bot] Nov 1, 2023
a0a57f5
Generate valid functions with optional non-nullable arguments
Nov 15, 2023
f3e3fc1
Update to the latest lints, require Dart 3.1, prepare release
kevmoo Nov 16, 2023
8b67b22
release later
kevmoo Nov 16, 2023
8b23521
Merge pull request dart-lang/mockito#719 from dart-lang:latest_lints
copybara-github Nov 16, 2023
fdf4107
No public description
kevmoo Nov 16, 2023
2f26195
Use `posix` style for local imports
Sese-Schneider Nov 21, 2023
1b2ccd1
Apply suggestions from code review
Sese-Schneider Dec 6, 2023
b8036e4
Merge pull request dart-lang/mockito#721 from Sese-Schneider:master
copybara-github Dec 6, 2023
8993381
Remove mockito pre-null-safety tests.
stereotype441 Dec 12, 2023
b772e3e
chore(deps): Allow test_api 0.7
provokateurin Dec 14, 2023
84fc9f3
Merge pull request dart-lang/mockito#726 from provokateurin:chore/dep…
copybara-github Dec 14, 2023
c9c664b
Bump mockito to 5.4.4
srawlins Dec 14, 2023
8c05b40
Ignore "must_be_immutable" warning in generated files.
oprypin Jan 10, 2024
144748b
Sort `import` directives in all *.dart code
oprypin Feb 5, 2024
49dfce0
Add basic extension types support
Feb 27, 2024
390cbb0
Bump dart-lang/setup-dart from 1.6.0 to 1.6.2
dependabot[bot] Feb 1, 2024
762ef90
Bump SDK version using in CI to 3.3
Feb 27, 2024
298a6ef
Fix one README example that were broken by https://github.com/dart-la…
Apr 11, 2024
8c0cdd4
blast_repo fixes (dart-lang/mockito#749)
devoncarew May 7, 2024
5e5c877
Stop using deprecated LibraryElement.isNonNullableByDefault
May 17, 2024
135e81f
Properly generate code for parameter default value Strings.
srawlins Jun 24, 2024
fc0f7ce
Fix lint in examples.
srawlins Jun 25, 2024
31c2096
Use curly braces in if statement, in accordance with upcoming lint ru…
srawlins Jun 27, 2024
60c37b6
Bump the github-actions group across 1 directory with 2 updates (dart…
dependabot[bot] Jul 1, 2024
598965b
Provide better documentation for `provideDummy`/`provideDummyBuilder`
jamesderlin Jun 5, 2024
3516c47
Update with review feedback from srawlins
jamesderlin Jul 3, 2024
585c07e
mockito: stop using deprecated analyzer APIs.
srawlins Sep 10, 2024
a18de65
Pass a Dart language version to the Dart formatter.
srawlins Sep 11, 2024
11fc929
Bump CI tasks to use Dart 3.5.0 as stable
srawlins Sep 11, 2024
2a627e5
Migration for analyzer APIs.
Sep 13, 2024
08b8104
Add "topics" to package mockito
Oct 3, 2024
6b42a76
Migration for analyzer APIs.
Oct 10, 2024
0734fe2
Merge package:mockito into the test monorepo
mosuem Oct 17, 2024
7835193
Add issue template and other fixes
mosuem Oct 17, 2024
aa0eb2e
Moving fixes
mosuem Oct 17, 2024
ee75bd1
Fix analysis errors
mosuem Oct 21, 2024
61d344a
Merge branch 'master' into merge-mockito-package
mosuem Oct 21, 2024
7c4bf82
Fix WF
mosuem Oct 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/mockito.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:mockito"
about: "Create a bug or file a feature request against package:mockito."
labels: "package:mockito"
---
111 changes: 111 additions & 0 deletions .github/workflows/mockito.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: package:mockito
mosuem marked this conversation as resolved.
Show resolved Hide resolved

on:
push:
branches: [master]
paths:
- '.github/workflows/mockito.yaml'
- 'pkgs/mockito/**'
pull_request:
branches: [master]
paths:
- '.github/workflows/mockito.yaml'
- 'pkgs/mockito/**'
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github

defaults:
run:
working-directory: pkgs/mockito

permissions: read-all

jobs:
# Check code formatting with the stable SDK.
format:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: 3.5.0
- id: install
name: Install dependencies
run: dart pub get
- name: Check formatting
run: dart format --output=none --set-exit-if-changed .

# Check static analysis against stable and dev SDKs.
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [3.5.0, dev]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Build generated artifacts
run: dart pub run build_runner build
- name: Analyze code
run: dart analyze

# Run tests against stable and dev SDKs.
test:
needs: analyze
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
sdk: [3.5.0, dev]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Run VM tests
run: dart run build_runner test -- --platform vm
if: always() && steps.install.outcome == 'success'
- name: Run DDC build
run: dart run build_runner build --fail-on-severe
if: always() && steps.install.outcome == 'success'
- name: Run DDC tests
run: dart run build_runner test -- --platform chrome
if: always() && steps.install.outcome == 'success'

document:
needs: analyze
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: dev
- id: install
name: Install dependencies
run: |
dart pub get
dart pub global activate dartdoc
- name: Verify dartdoc
run: dart pub global run dartdoc \
--no-generate-docs \
--errors=unresolved-doc-reference,ambiguous-doc-reference,ambiguous-reexport,broken-link,deprecated,no-library-level-docs,unknown-directive,unknown-macro
if: always() && steps.install.outcome == 'success'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ literate API.
| [checks](pkgs/checks/) | A framework for checking values against expectations and building custom expectations. | [![pub package](https://img.shields.io/pub/v/checks.svg)](https://pub.dev/packages/checks) |
| [fake_async](pkgs/fake_async/) | Fake asynchronous events such as timers and microtasks for deterministic testing. | [![pub package](https://img.shields.io/pub/v/fake_async.svg)](https://pub.dev/packages/fake_async) |
| [matcher](pkgs/matcher/) | Support for specifying test expectations via an extensible Matcher class. | [![pub package](https://img.shields.io/pub/v/matcher.svg)](https://pub.dev/packages/matcher) |
| [mockito](pkgs/mockito/) | A mock framework inspired by Mockito with APIs for Fakes, Mocks, behavior verification, and stubbing. | [![pub package](https://img.shields.io/pub/v/mockito.svg)](https://pub.dev/packages/mockito) |
| [test](pkgs/test/) | A full featured library for writing and running Dart tests across platforms. | [![pub package](https://img.shields.io/pub/v/test.svg)](https://pub.dev/packages/test) |
| [test_api](pkgs/test_api/) | | [![pub package](https://img.shields.io/pub/v/test_api.svg)](https://pub.dev/packages/test_api) |
| [test_core](pkgs/test_core/) | | [![pub package](https://img.shields.io/pub/v/test_core.svg)](https://pub.dev/packages/test_core) |
13 changes: 13 additions & 0 deletions pkgs/mockito/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# See https://dart.dev/guides/libraries/private-files

# Files and directories created by pub
.dart_tool
.packages
.pub
pubspec.lock
build/

coverage/

# ignore generated mocks
**/*.mocks.dart
Loading
Loading