-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1664 from dart-lang/merge-test_reflective_loader-…
…package Merge `package:test_reflective_loader`
- Loading branch information
Showing
13 changed files
with
617 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.