mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Introduce sky/unit/test
This patch adds a new test harness and a first, trivial test to run with the harness. The new test harness is built on package:test and should run on Travis. Over time, we'll migrate our existing tests into this harness.
This commit is contained in:
parent
1c06ea17a3
commit
b64e1aaba8
@ -11,7 +11,7 @@ dependencies:
|
|||||||
newton: ^0.1.2
|
newton: ^0.1.2
|
||||||
sky_engine: ^0.0.12
|
sky_engine: ^0.0.12
|
||||||
sky_services: ^0.0.12
|
sky_services: ^0.0.12
|
||||||
sky_tools: ^0.0.9
|
sky_tools: ^0.0.10
|
||||||
vector_math: ^1.4.3
|
vector_math: ^1.4.3
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=1.8.0 <2.0.0'
|
sdk: '>=1.8.0 <2.0.0'
|
||||||
|
3
packages/unit/.gitignore
vendored
Normal file
3
packages/unit/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.pub
|
||||||
|
packages
|
||||||
|
pubspec.lock
|
10
packages/unit/pubspec.yaml
Normal file
10
packages/unit/pubspec.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
name: sky_unit_tests
|
||||||
|
dependencies:
|
||||||
|
sky: any
|
||||||
|
sky_tools: any
|
||||||
|
test: any
|
||||||
|
dependency_overrides:
|
||||||
|
material_design_icons:
|
||||||
|
path: ../packages/material_design_icons
|
||||||
|
sky:
|
||||||
|
path: ../packages/sky
|
7
packages/unit/test/harness/trivial_test.dart
Normal file
7
packages/unit/test/harness/trivial_test.dart
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
void main() {
|
||||||
|
test("should pass", () {
|
||||||
|
expect(1 + 1, equals(2));
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user