Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
d6343077
Commit
d6343077
authored
Nov 09, 2016
by
Yegor
Committed by
GitHub
Nov 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add driver failure test (#6776)
parent
690ec450
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
test.sh
dev/bots/test.sh
+1
-0
failure.dart
packages/flutter_driver/test_driver/failure.dart
+7
-0
failure_test.dart
packages/flutter_driver/test_driver/failure_test.dart
+9
-0
No files found.
dev/bots/test.sh
View file @
d6343077
...
@@ -22,6 +22,7 @@ flutter analyze --flutter-repo
...
@@ -22,6 +22,7 @@ flutter analyze --flutter-repo
# verify that the tests actually return failure on failure and success on success
# verify that the tests actually return failure on failure and success on success
(
cd
dev/automated_tests
;
!
flutter
test
test_smoke_test/fail_test.dart
>
/dev/null
)
(
cd
dev/automated_tests
;
!
flutter
test
test_smoke_test/fail_test.dart
>
/dev/null
)
(
cd
dev/automated_tests
;
flutter
test
test_smoke_test/pass_test.dart
>
/dev/null
)
(
cd
dev/automated_tests
;
flutter
test
test_smoke_test/pass_test.dart
>
/dev/null
)
(
cd
packages/flutter_driver
;
!
flutter drive
--use-existing-app
-t
test_driver/failure.dart
>
/dev/null 2>&1
)
COVERAGE_FLAG
=
COVERAGE_FLAG
=
if
[
-n
"
$TRAVIS
"
]
&&
[
"
$TRAVIS_PULL_REQUEST
"
==
"false"
]
;
then
if
[
-n
"
$TRAVIS
"
]
&&
[
"
$TRAVIS_PULL_REQUEST
"
==
"false"
]
;
then
...
...
packages/flutter_driver/test_driver/failure.dart
0 → 100644
View file @
d6343077
// 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.
void
main
(
)
{
// Dummy. Only needed because driver needs an entry point.
}
packages/flutter_driver/test_driver/failure_test.dart
0 → 100644
View file @
d6343077
// 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.
void
main
(
)
{
// Intentionally fail the test. We want to see driver return a non-zero exit
// code when this happens.
throw
'Failed'
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment