Skip to content

Commit

Permalink
Moving fixes for mockito
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Dec 12, 2024
1 parent 6876fe9 commit 7c7cbf5
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
name: Dart CI
name: package:mockito

permissions: read-all

on:
# Run on PRs and pushes to the default branch.
push:
branches: [ master ]
# Run CI on all PRs (against any branch) and on pushes to the master branch.
pull_request:
paths:
- '.github/workflows/mockito.yaml'
- 'pkgs/mockito/**'
push:
branches: [ master ]
paths:
- '.github/workflows/mockito.yaml'
- 'pkgs/mockito/**'
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github
- cron: '0 0 * * 0' # weekly

permissions: read-all
defaults:
run:
working-directory: pkgs/mockito

jobs:
# Check code formatting with the dev SDK.
Expand Down
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) |
15 changes: 0 additions & 15 deletions pkgs/mockito/.github/dependabot.yml

This file was deleted.

1 change: 1 addition & 0 deletions pkgs/mockito/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Fix a bug where type aliases in type arguments were not correctly
resolved.
* Fix a bug where record types were not correctly resolved.
* Move to `dart-lang/test` monorepo.

## 5.4.4

Expand Down
6 changes: 3 additions & 3 deletions pkgs/mockito/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Dart CI](https://github.com/dart-lang/mockito/actions/workflows/test-package.yml/badge.svg)](https://github.com/dart-lang/mockito/actions/workflows/test-package.yml)
[![Build Status](https://github.com/dart-lang/test/actions/workflows/mockito.yaml/badge.svg)](https://github.com/dart-lang/test/actions/workflows/mockito.yaml)
[![Pub](https://img.shields.io/pub/v/mockito.svg)](https://pub.dev/packages/mockito)
[![package publisher](https://img.shields.io/pub/publisher/mockito.svg)](https://pub.dev/packages/mockito/publisher)

Expand Down Expand Up @@ -65,7 +65,7 @@ you want to add Mockito annotations in other places, you will need to add a
The generated mock class, `MockCat`, extends Mockito's Mock class and implements
the Cat class, giving us a class which supports stubbing and verifying.

[NULL_SAFETY_README]: https://github.com/dart-lang/mockito/blob/master/NULL_SAFETY_README.md
[NULL_SAFETY_README]: https://github.com/dart-lang/test/blob/master/pkgs/mockito/NULL_SAFETY_README.md

## Let's verify some behavior!

Expand Down Expand Up @@ -460,7 +460,7 @@ utilities on a class which `extends Mock` if it helps with code structure.
## Frequently asked questions

Read more information about this package in the
[FAQ](https://github.com/dart-lang/mockito/blob/master/FAQ.md).
[FAQ](https://github.com/dart-lang/test/blob/master/pkgs/mockito/FAQ.md).

[`verify`]: https://pub.dev/documentation/mockito/latest/mockito/verify.html
[`verifyInOrder`]: https://pub.dev/documentation/mockito/latest/mockito/verifyInOrder.html
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ workspace:
- pkgs/test
- pkgs/test_api
- pkgs/test_core
- pkgs/mockito
dev_dependencies:
dart_flutter_team_lints: ^3.1.0

0 comments on commit 7c7cbf5

Please sign in to comment.