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
bf7cc096
Unverified
Commit
bf7cc096
authored
Jan 18, 2018
by
Michael Goderbauer
Committed by
GitHub
Jan 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moar tests on Windows (#14148)
parent
6da8ec6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
create_test.dart
packages/flutter_tools/test/commands/create_test.dart
+1
-6
test_test.dart
packages/flutter_tools/test/commands/test_test.dart
+6
-6
No files found.
packages/flutter_tools/test/commands/create_test.dart
View file @
bf7cc096
...
...
@@ -4,7 +4,6 @@
import
'dart:async'
;
import
'dart:convert'
;
import
'dart:io'
as
io
;
import
'package:args/command_runner.dart'
;
import
'package:flutter_tools/src/base/file_system.dart'
;
...
...
@@ -212,11 +211,7 @@ void main() {
}
}
// TODO(pq): enable when sky_shell is available
if
(!
io
.
Platform
.
isWindows
)
{
// Verify that the sample widget test runs cleanly.
await
_runFlutterTest
(
projectDir
,
target:
fs
.
path
.
join
(
projectDir
.
path
,
'test'
,
'widget_test.dart'
));
}
await
_runFlutterTest
(
projectDir
,
target:
fs
.
path
.
join
(
projectDir
.
path
,
'test'
,
'widget_test.dart'
));
// Generated Xcode settings
final
String
xcodeConfigPath
=
fs
.
path
.
join
(
'ios'
,
'Flutter'
,
'Generated.xcconfig'
);
...
...
packages/flutter_tools/test/commands/test_test.dart
View file @
bf7cc096
...
...
@@ -26,28 +26,28 @@ void main() {
testUsingContext
(
'report nice errors for exceptions thrown within testWidgets()'
,
()
async
{
Cache
.
flutterRoot
=
'../..'
;
return
_testFile
(
'exception_handling'
,
automatedTestsDirectory
,
flutterTestDirectory
);
}
);
}
,
skip:
io
.
Platform
.
isWindows
);
// Dart on Windows has trouble with unicode characters in output
testUsingContext
(
'report a nice error when a guarded function was called without await'
,
()
async
{
Cache
.
flutterRoot
=
'../..'
;
return
_testFile
(
'test_async_utils_guarded'
,
automatedTestsDirectory
,
flutterTestDirectory
);
}
);
}
,
skip:
io
.
Platform
.
isWindows
);
// Dart on Windows has trouble with unicode characters in output
testUsingContext
(
'report a nice error when an async function was called without await'
,
()
async
{
Cache
.
flutterRoot
=
'../..'
;
return
_testFile
(
'test_async_utils_unguarded'
,
automatedTestsDirectory
,
flutterTestDirectory
);
}
);
}
,
skip:
io
.
Platform
.
isWindows
);
// Dart on Windows has trouble with unicode characters in output
testUsingContext
(
'report a nice error when a Ticker is left running'
,
()
async
{
Cache
.
flutterRoot
=
'../..'
;
return
_testFile
(
'ticker'
,
automatedTestsDirectory
,
flutterTestDirectory
);
}
);
}
,
skip:
io
.
Platform
.
isWindows
);
// Dart on Windows has trouble with unicode characters in output
testUsingContext
(
'report a nice error when a pubspec.yaml is missing a flutter_test dependency'
,
()
async
{
final
String
missingDependencyTests
=
fs
.
path
.
join
(
'..'
,
'..'
,
'dev'
,
'missing_dependency_tests'
);
Cache
.
flutterRoot
=
'../..'
;
return
_testFile
(
'trivial'
,
missingDependencyTests
,
missingDependencyTests
);
}
);
}
,
skip:
io
.
Platform
.
isWindows
);
// Dart on Windows has trouble with unicode characters in output
testUsingContext
(
'run a test when its name matches a regexp'
,
()
async
{
Cache
.
flutterRoot
=
'../..'
;
...
...
@@ -82,7 +82,7 @@ void main() {
expect
(
result
.
exitCode
,
0
);
});
}
,
skip:
io
.
Platform
.
isWindows
);
// TODO(goderbauer): enable when sky_shell is available
}
);
}
Future
<
Null
>
_testFile
(
String
testName
,
String
workingDirectory
,
String
testDirectory
)
async
{
...
...
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