Also, make sure that broken tests actually break the bots.

And add a test to make sure that keeps happening.
This commit is contained in:
Ian Hickson
2016-05-17 12:45:37 -07:00
parent c192a7e4ca
commit f284c1a049
13 changed files with 88 additions and 30 deletions

9
dev/automated_tests/.gitignore vendored Normal file
View File

@@ -0,0 +1,9 @@
.atom
.DS_Store
.buildlog
.idea
.packages
.pub/
build/
packages
pubspec.lock

View File

@@ -0,0 +1,2 @@
This is a fake package for use by automated testing.
For example, the `flutter_tools` package uses this to test `flutter test`.

View File

@@ -0,0 +1 @@
uses-material-design: true

View File

@@ -0,0 +1,6 @@
name: flutter_automated_tests
dependencies:
flutter:
path: ../../packages/flutter
flutter_test:
path: ../../packages/flutter_test

View File

@@ -0,0 +1,2 @@
This directory is used by ///flutter/travis/test.sh to verify that
`flutter test` actually correctly fails when a test fails.

View File

@@ -0,0 +1,14 @@
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
// this is a test to make sure our tests actually catch failures
// see ///flutter/travis/test.sh
void main() {
test('test smoke test -- this test SHOULD FAIL', () async {
expect(false, isTrue);
});
}

View File

@@ -0,0 +1,14 @@
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
// this is a test to make sure our tests actually catch failures
// see ///flutter/travis/test.sh
void main() {
test('test smoke test -- this test should pass', () async {
expect(true, isTrue);
});
}