Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 12 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,25 @@ on:
# “At 00:00 (UTC) on Sunday.”
- cron: '0 0 * * 0'

env:
PUB_ENVIRONMENT: bot.github

jobs:
build:
runs-on: ubuntu-latest

container:
image: google/dart:beta
strategy:
fail-fast: false
matrix:
sdk: [dev, stable]

steps:
- uses: actions/checkout@v2

- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}

- name: pub get
run: pub get
run: dart pub get

- name: dart format
run: dart format --output=none --set-exit-if-changed .
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 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.
Expand Down
10 changes: 5 additions & 5 deletions lib/test_reflective_loader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@ import 'package:test/test.dart' as test_package;
* A marker annotation used to annotate test methods which are expected to fail
* when asserts are enabled.
*/
const _AssertFailingTest assertFailingTest = _AssertFailingTest();
const Object assertFailingTest = _AssertFailingTest();

/**
* A marker annotation used to annotate test methods which are expected to fail.
*/
const FailingTest failingTest = FailingTest();
const Object failingTest = FailingTest();

/**
* A marker annotation used to instruct dart2js to keep reflection information
* for the annotated classes.
*/
const _ReflectiveTest reflectiveTest = _ReflectiveTest();
const Object reflectiveTest = _ReflectiveTest();

/**
* A marker annotation used to annotate test methods that should be skipped.
*/
const SkippedTest skippedTest = SkippedTest();
const Object skippedTest = SkippedTest();

/**
* A marker annotation used to annotate "solo" groups and tests.
*/
const _SoloTest soloTest = _SoloTest();
const Object soloTest = _SoloTest();

final List<_Group> _currentGroups = <_Group>[];
int _currentSuiteLevel = 0;
Expand Down
6 changes: 4 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: test_reflective_loader
version: 0.2.1
version: 0.2.2
description: Support for discovering tests and test suites using reflection.
repository: https://github.com/dart-lang/test_reflective_loader

environment:
sdk: '>=2.12.0 <3.0.0'

dependencies:
lints: ^1.0.0
test: ^1.16.0

dev_dependencies:
lints: ^2.0.0