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:test_reflective_loader #1664

Merged
merged 105 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
5a21d30
Initial commit.
scheglov Apr 21, 2015
b579ec0
Update AUTHORS
devoncarew Apr 21, 2015
8de1f8c
Merge pull request dart-lang/test_reflective_loader#1 from dart-lang/…
scheglov Apr 21, 2015
4dfedd1
Update version before publishing.
scheglov Apr 21, 2015
9633184
Update README.md
devoncarew Apr 21, 2015
117d3c0
Merge pull request dart-lang/test_reflective_loader#3 from dart-lang/…
devoncarew Apr 21, 2015
76b8c75
Rename runReflectiveTests -> defineReflectiveTests.
scheglov Apr 22, 2015
2846ea4
Merge pull request dart-lang/test_reflective_loader#4 from dart-lang/…
scheglov Apr 22, 2015
9e5d9a8
Update with implementation from 'analyzer'.
scheglov Aug 31, 2016
7cbedea
Switch to 'test', add different support for 'solo'.
scheglov Oct 4, 2016
6ed30e4
handle exceptions to zone handlers in @failingTests
devoncarew Dec 7, 2017
f8f87a7
Merge pull request dart-lang/test_reflective_loader#7 from dart-lang/…
devoncarew Dec 7, 2017
f68b626
Update pubspec.yaml
devoncarew Dec 8, 2017
b34ceea
update the changelog
devoncarew Dec 8, 2017
c0e874a
Merge pull request dart-lang/test_reflective_loader#9 from dart-lang/…
devoncarew Dec 8, 2017
7d0d18b
Fail @failingTest when the test passes.
scheglov Dec 8, 2017
a32c398
Merge pull request dart-lang/test_reflective_loader#10 from dart-lang…
scheglov Dec 8, 2017
b2e03b7
Require at least SDK 1.8.0 because 'pub publish' demands this.
scheglov Dec 8, 2017
4169a6b
Merge pull request dart-lang/test_reflective_loader#11 from dart-lang…
scheglov Dec 8, 2017
4638060
add tests, travis support, some lints
devoncarew Dec 8, 2017
0dd6971
add return types
devoncarew Dec 8, 2017
96130a2
Merge pull request dart-lang/test_reflective_loader#12 from dart-lang…
devoncarew Dec 8, 2017
3b8a376
Update README.md
devoncarew Dec 8, 2017
531a402
Merge pull request dart-lang/test_reflective_loader#13 from dart-lang…
devoncarew Dec 8, 2017
17ee37f
Add timeout support to test_reflective_loader.
stereotype441 Mar 26, 2018
d99ea36
Fix comment
stereotype441 Mar 26, 2018
fcbc1cf
Merge pull request dart-lang/test_reflective_loader#14 from dart-lang…
stereotype441 Mar 26, 2018
b96e1fd
Update pubspec version to 0.1.4 in preparation to publish
stereotype441 Mar 26, 2018
5ece54d
Merge pull request dart-lang/test_reflective_loader#15 from dart-lang…
stereotype441 Mar 26, 2018
fc2e392
chore: set max SDK version to <3.0.0
chalin Jul 16, 2018
19c158d
Merge pull request dart-lang/test_reflective_loader#17 from chalin/ch…
scheglov Jul 16, 2018
7870211
Make FailingTest public.
scheglov Jul 20, 2018
99f59db
Merge pull request dart-lang/test_reflective_loader#19 from dart-lang…
scheglov Jul 20, 2018
870ad66
Update comments (dart-lang/test_reflective_loader#20)
scheglov Jul 21, 2018
8f4e194
Update pubspec.yaml version. (dart-lang/test_reflective_loader#21)
scheglov Jul 21, 2018
6f98f8a
Add 'issue' and 'reason' parameters to FailingTest. (dart-lang/test_r…
scheglov Jul 26, 2018
d30eec7
Delete codereview.settings
kevmoo Aug 1, 2019
964693d
Add support for skipping tests
MichaelRFairhurst Sep 30, 2019
e7b8234
Feedback from Konstantin
MichaelRFairhurst Sep 30, 2019
c2bb0c1
Merge pull request dart-lang/test_reflective_loader#24 from MichaelRF…
MichaelRFairhurst Sep 30, 2019
24782ed
prep publish 1.9
MichaelRFairhurst Sep 30, 2019
a246850
Merge pull request dart-lang/test_reflective_loader#25 from MichaelRF…
MichaelRFairhurst Sep 30, 2019
5a4d85a
add support for github actions
devoncarew Oct 31, 2020
86fecaf
Merge pull request dart-lang/test_reflective_loader#26 from dart-lang…
devoncarew Oct 31, 2020
dfb474b
remove travis support
devoncarew Oct 31, 2020
43f6c5d
Merge pull request dart-lang/test_reflective_loader#27 from dart-lang…
devoncarew Nov 1, 2020
f6b04f3
Update README.md
devoncarew Nov 1, 2020
485dc97
Merge pull request dart-lang/test_reflective_loader#28 from dart-lang…
devoncarew Nov 1, 2020
048ac64
Setup weekly cron on Github workflow (dart-lang/test_reflective_loade…
kevmoo Nov 13, 2020
1520964
Migrate to nullsafety
srawlins Dec 3, 2020
9a7c70e
nit
srawlins Dec 3, 2020
b5b95d8
fmt
srawlins Dec 3, 2020
296db46
Feedback; much less nullable
srawlins Dec 3, 2020
3810364
Use runZonedGuarded
srawlins Dec 3, 2020
bcfa4c6
Fix test
srawlins Dec 4, 2020
6b8f268
Merge pull request dart-lang/test_reflective_loader#30 from srawlins/…
srawlins Dec 4, 2020
0b72f1c
stable null safety release (dart-lang/test_reflective_loader#31)
scheglov Feb 8, 2021
1a84a1e
Revert "stable null safety release (dart-lang/test_reflective_loader#…
scheglov Feb 8, 2021
7c4cefa
stable null safety release (dart-lang/test_reflective_loader#33)
scheglov Feb 9, 2021
a9a289f
Update LICENSE
franklinyow Apr 2, 2021
6b2804a
Merge pull request dart-lang/test_reflective_loader#34 from dart-lang…
franklinyow Apr 2, 2021
ddc0e43
Fix pre-existing HintCode.UNNECESSARY_TYPE_CHECK_TRUE (dart-lang/test…
scheglov Sep 1, 2021
0b51a2d
Remove stale travis job
mit-mit Jan 17, 2022
7755a83
Merge pull request dart-lang/test_reflective_loader#37 from dart-lang…
mit-mit Jan 18, 2022
ccf576e
populate the pubspec repository field (dart-lang/test_reflective_load…
devoncarew Apr 30, 2022
3e2beca
prep to publish 0.2.1 (dart-lang/test_reflective_loader#40)
devoncarew May 19, 2022
eede1d6
update to lints 2.0.0; prep for publishing
pq Sep 14, 2022
79407a8
++
pq Sep 14, 2022
11038d6
drop beta container
pq Sep 14, 2022
bcec3ea
fix setup
pq Sep 14, 2022
5217d3d
+ PUB_ENV
pq Sep 14, 2022
629213d
+ dart pub call
pq Sep 14, 2022
92c6271
0.2.2
pq Sep 14, 2022
9695157
+ matrix
pq Sep 14, 2022
3803105
Merge pull request dart-lang/test_reflective_loader#41 from pq/0.2.2
pq Sep 14, 2022
8d668a8
blast_repo fixes (dart-lang/test_reflective_loader#42)
kevmoo Nov 15, 2022
c2b1532
Bump actions/checkout from 3.1.0 to 3.2.0 (dart-lang/test_reflective_…
dependabot[bot] Jan 3, 2023
0f952cf
Bump actions/checkout from 3.2.0 to 3.3.0 (dart-lang/test_reflective_…
dependabot[bot] Feb 1, 2023
b9f3fd2
Bump dart-lang/setup-dart from 1.3 to 1.4 (dart-lang/test_reflective_…
dependabot[bot] Feb 1, 2023
8e64e23
Bump actions/checkout from 3.3.0 to 3.5.0 (dart-lang/test_reflective_…
dependabot[bot] Apr 1, 2023
6d39477
Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (dart-lang/test_reflect…
dependabot[bot] Apr 2, 2023
e3326e1
Bump actions/checkout from 3.5.0 to 3.5.2 (dart-lang/test_reflective_…
dependabot[bot] May 1, 2023
997558a
blast_repo fixes (dart-lang/test_reflective_loader#49)
devoncarew May 19, 2023
993013a
Bump actions/checkout from 3.5.2 to 3.5.3 (dart-lang/test_reflective_…
dependabot[bot] Jul 1, 2023
c61ef50
Bump actions/checkout from 3.5.3 to 3.6.0 (dart-lang/test_reflective_…
dependabot[bot] Sep 1, 2023
4ead479
Bump actions/checkout from 3.6.0 to 4.1.0 (dart-lang/test_reflective_…
dependabot[bot] Oct 1, 2023
2da9f6f
Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (dart-lang/test_reflect…
dependabot[bot] Oct 2, 2023
2460f52
Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (dart-lang/test_reflect…
dependabot[bot] Nov 1, 2023
2867db1
Bump actions/checkout from 4.1.0 to 4.1.1 (dart-lang/test_reflective_…
dependabot[bot] Nov 1, 2023
289718a
Update lints, bump min SDK to ^3.1.0 (dart-lang/test_reflective_loade…
kevmoo Dec 1, 2023
8f06600
Bump dart-lang/setup-dart from 1.6.0 to 1.6.2 (dart-lang/test_reflect…
dependabot[bot] Feb 1, 2024
14ed328
Bump actions/checkout from 4.1.1 to 4.1.2 (dart-lang/test_reflective_…
dependabot[bot] Apr 1, 2024
1c91f5b
Bump dart-lang/setup-dart from 1.6.2 to 1.6.4 (dart-lang/test_reflect…
dependabot[bot] May 1, 2024
39b7ebe
Bump actions/checkout from 4.1.2 to 4.1.4 (dart-lang/test_reflective_…
dependabot[bot] May 1, 2024
e2de797
blast_repo fixes (dart-lang/test_reflective_loader#61)
devoncarew May 10, 2024
387f5ae
Bump actions/checkout from 4.1.4 to 4.1.5 in the github-actions group…
dependabot[bot] May 10, 2024
8a1643c
Bump actions/checkout from 4.1.5 to 4.1.6 in the github-actions group…
dependabot[bot] Jun 1, 2024
93d51e1
Bump the github-actions group with 2 updates (dart-lang/test_reflecti…
dependabot[bot] Jul 1, 2024
762063c
Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group…
dependabot[bot] Oct 1, 2024
1729eee
Bump actions/checkout from 4.2.0 to 4.2.2 in the github-actions group…
dependabot[bot] Nov 1, 2024
5d04224
Bump dart-lang/setup-dart in the github-actions group (dart-lang/test…
dependabot[bot] Dec 1, 2024
856ce7e
Merge package:test_reflective_loader into the tools monorepo
mosuem Dec 11, 2024
1d67e12
Add issue template and other fixes
mosuem Dec 11, 2024
59d823e
Moving fixes
mosuem Dec 11, 2024
bea4a35
Merge branch 'main' into merge-test_reflective_loader-package
mosuem Dec 12, 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/test_reflective_loader.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:test_reflective_loader"
about: "Create a bug or file a feature request against package:test_reflective_loader."
labels: "package:test_reflective_loader"
---
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@
- changed-files:
- any-glob-to-any-file: 'pkgs/sse/**'

'package:test_reflective_loader':
- changed-files:
- any-glob-to-any-file: 'pkgs/test_reflective_loader/**'

'package:timing':
- changed-files:
- any-glob-to-any-file: 'pkgs/timing/**'
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/test_reflective_loader.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: package:test_reflective_loader

on:
# Run on PRs and pushes to the default branch.
push:
branches: [ main ]
paths:
- '.github/workflows/test_reflective_loader.yaml'
- 'pkgs/test_reflective_loader/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/test_reflective_loader.yaml'
- 'pkgs/test_reflective_loader/**'
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github

defaults:
run:
working-directory: pkgs/test_reflective_loader/

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [dev, 3.1]

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: ${{ matrix.sdk }}

- run: dart pub get
- name: dart format
run: dart format --output=none --set-exit-if-changed .
- run: dart analyze --fatal-infos
- run: dart test
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ don't naturally belong to other topic monorepos (like
| [source_maps](pkgs/source_maps/) | A library to programmatically manipulate source map files. | [![package issues](https://img.shields.io/badge/package:source_maps-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Asource_maps) | [![pub package](https://img.shields.io/pub/v/source_maps.svg)](https://pub.dev/packages/source_maps) |
| [source_span](pkgs/source_span/) | Provides a standard representation for source code locations and spans. | [![package issues](https://img.shields.io/badge/package:source_span-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Asource_span) | [![pub package](https://img.shields.io/pub/v/source_span.svg)](https://pub.dev/packages/source_span) |
| [sse](pkgs/sse/) | Provides client and server functionality for setting up bi-directional communication through Server Sent Events (SSE) and corresponding POST requests. | [![package issues](https://img.shields.io/badge/package:sse-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Asse) | [![pub package](https://img.shields.io/pub/v/sse.svg)](https://pub.dev/packages/sse) |
| [test_reflective_loader](pkgs/test_reflective_loader/) | Support for discovering tests and test suites using reflection. | [![package issues](https://img.shields.io/badge/package:test_reflective_loader-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest_reflective_loader) | [![pub package](https://img.shields.io/pub/v/test_reflective_loader.svg)](https://pub.dev/packages/test_reflective_loader) |
| [timing](pkgs/timing/) | A simple package for tracking the performance of synchronous and asynchronous actions. | [![package issues](https://img.shields.io/badge/package:timing-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atiming) | [![pub package](https://img.shields.io/pub/v/timing.svg)](https://pub.dev/packages/timing) |
| [unified_analytics](pkgs/unified_analytics/) | A package for logging analytics for all Dart and Flutter related tooling to Google Analytics. | [![package issues](https://img.shields.io/badge/package:unified_analytics-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aunified_analytics) | [![pub package](https://img.shields.io/pub/v/unified_analytics.svg)](https://pub.dev/packages/unified_analytics) |

Expand Down
11 changes: 11 additions & 0 deletions pkgs/test_reflective_loader/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.buildlog
.DS_Store
.idea
.dart_tool/
.pub/
.project
.settings/
build/
packages
.packages
pubspec.lock
6 changes: 6 additions & 0 deletions pkgs/test_reflective_loader/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Below is a list of people and organizations that have contributed
# to the project. Names should be added to the list like so:
#
# Name/Organization <email address>

Google Inc.
72 changes: 72 additions & 0 deletions pkgs/test_reflective_loader/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
## 0.2.3

- Require Dart `^3.1.0`.
- Move to `dart-lang/tools` monorepo.

## 0.2.2

- Update to package:lints 2.0.0 and move it to a dev dependency.

## 0.2.1

- Use package:lints for analysis.
- Populate the pubspec `repository` field.

## 0.2.0

- Stable null safety release.

## 0.2.0-nullsafety.0

- Migrate to the null safety language feature.

## 0.1.9

- Add `@SkippedTest` annotation and `skip_test` prefix.

## 0.1.8

- Update `FailingTest` to add named parameters `issue` and `reason`.

## 0.1.7

- Update documentation comments.
- Remove `@MirrorsUsed` annotation on `dart:mirrors`.

## 0.1.6

- Make `FailingTest` public, with the URI of the issue that causes
the test to break.

## 0.1.5

- Set max SDK version to `<3.0.0`, and adjust other dependencies.

## 0.1.3

- Fix `@failingTest` to fail when the test passes.

## 0.1.2

- Update the pubspec `dependencies` section to include `package:test`

## 0.1.1

- For `@failingTest` tests, properly handle when the test fails by throwing an
exception in a timer task
- Analyze this package in strong mode

## 0.1.0

- Switched from 'package:unittest' to 'package:test'.
- Since 'package:test' does not define 'solo_test', in order to keep this
functionality, `defineReflectiveSuite` must be used to wrap all
`defineReflectiveTests` invocations.

## 0.0.4

- Added @failingTest, @assertFailingTest and @soloTest annotations.

## 0.0.1

- Initial version
27 changes: 27 additions & 0 deletions pkgs/test_reflective_loader/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright 2015, the Dart project authors.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Google LLC nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 changes: 28 additions & 0 deletions pkgs/test_reflective_loader/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[![Build Status](https://github.com/dart-lang/tools/actions/workflows/test_reflective_loader.yaml/badge.svg)](https://github.com/dart-lang/tools/actions/workflows/test_reflective_loader.yaml)
[![pub package](https://img.shields.io/pub/v/test_reflective_loader.svg)](https://pub.dev/packages/test_reflective_loader)
[![package publisher](https://img.shields.io/pub/publisher/test_reflective_loader.svg)](https://pub.dev/packages/test_reflective_loader/publisher)

Support for discovering tests and test suites using reflection.

This package follows the xUnit style where each class is a test suite, and each
method with the name prefix `test_` is a single test.

Methods with names starting with `test_` are run using the `test()` function with
the corresponding name. If the class defines methods `setUp()` or `tearDown()`,
they are executed before / after each test correspondingly, even if the test fails.

Methods with names starting with `solo_test_` are run using the `solo_test()` function.

Methods with names starting with `fail_` are expected to fail.

Methods with names starting with `solo_fail_` are run using the `solo_test()` function
and expected to fail.

Method returning `Future` class instances are asynchronous, so `tearDown()` is
executed after the returned `Future` completes.

## Features and bugs

Please file feature requests and bugs at the [issue tracker][tracker].

[tracker]: https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest_reflective_loader
5 changes: 5 additions & 0 deletions pkgs/test_reflective_loader/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include: package:dart_flutter_team_lints/analysis_options.yaml

linter:
rules:
- public_member_api_docs
Loading
Loading