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
a1141d9f
Unverified
Commit
a1141d9f
authored
Feb 03, 2021
by
Ian Hickson
Committed by
GitHub
Feb 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Add test for driver test organisation (#75271)" (#75317)
This reverts commit
26e976d7
.
parent
45508985
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
41 deletions
+0
-41
test_organisation_test.dart
...er_driver/test/src/real_tests/test_organisation_test.dart
+0
-41
No files found.
packages/flutter_driver/test/src/real_tests/test_organisation_test.dart
deleted
100644 → 0
View file @
45508985
// Copyright 2014 The Flutter 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
'dart:io'
;
import
'package:flutter_driver/flutter_driver.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
void
main
(
)
{
// On CI we only execute the tests in the `test/src/real_test` and
// `test/src/web_test` directory, see https://github.com/flutter/flutter/blob/master/dev/bots/test.dart.
// This test ensures that we do not accidentally add tests in the the `test`
// or `test/src` directory, which would not run on CI.
test
(
'test files exist only in directories where CI expects them'
,
()
{
final
String
flutterDriverPath
=
fs
.
path
.
dirname
(
Platform
.
script
.
path
);
expect
(
fs
.
path
.
basename
(
flutterDriverPath
),
'flutter_driver'
);
final
String
flutterDriverTestPath
=
fs
.
path
.
join
(
flutterDriverPath
,
'test'
);
final
Directory
flutterDriverTestDir
=
fs
.
directory
(
flutterDriverTestPath
);
expect
(
flutterDriverTestDir
.
existsSync
(),
isTrue
,
reason:
'
${flutterDriverTestDir.path}
does not exist.'
);
final
List
<
String
>
filesInTestDir
=
flutterDriverTestDir
.
listSync
()
.
map
((
FileSystemEntity
e
)
=>
fs
.
path
.
basename
(
e
.
path
))
.
where
((
String
s
)
=>
fs
.
path
.
extension
(
s
)
==
'.dart'
)
.
toList
();
// There are no test files in the `test` directory.
expect
(
filesInTestDir
,
<
String
>[
'common.dart'
]);
// There are no test files in the src directory.
final
String
flutterDriverTestSrcPath
=
fs
.
path
.
join
(
flutterDriverTestPath
,
'src'
);
final
Directory
flutterDriverTestSrcDir
=
fs
.
directory
(
flutterDriverTestSrcPath
);
expect
(
flutterDriverTestSrcDir
.
existsSync
(),
isTrue
,
reason:
'
${flutterDriverTestSrcDir.path}
does not exist.'
);
final
List
<
String
>
filesInTestSrcDir
=
flutterDriverTestSrcDir
.
listSync
()
.
map
((
FileSystemEntity
e
)
=>
fs
.
path
.
basename
(
e
.
path
))
.
where
((
String
s
)
=>
fs
.
path
.
extension
(
s
)
==
'.dart'
)
.
toList
();
// There are no test files in the `test/src` directory.
expect
(
filesInTestSrcDir
,
unorderedEquals
(<
String
>[]));
},
skip:
Platform
.
isWindows
);
}
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