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
5ff2b1a1
Commit
5ff2b1a1
authored
Jan 28, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1444 from devoncarew/work_on_test
test command checks for test dir
parents
5b2005d4
c46ad29c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
executable.dart
packages/flutter_tools/lib/executable.dart
+2
-2
test.dart
packages/flutter_tools/lib/src/commands/test.dart
+7
-1
No files found.
packages/flutter_tools/lib/executable.dart
View file @
5ff2b1a1
...
@@ -8,7 +8,6 @@ import 'dart:io';
...
@@ -8,7 +8,6 @@ import 'dart:io';
import
'package:args/command_runner.dart'
;
import
'package:args/command_runner.dart'
;
import
'package:stack_trace/stack_trace.dart'
;
import
'package:stack_trace/stack_trace.dart'
;
import
'src/base/context.dart'
;
import
'src/base/process.dart'
;
import
'src/base/process.dart'
;
import
'src/commands/analyze.dart'
;
import
'src/commands/analyze.dart'
;
import
'src/commands/apk.dart'
;
import
'src/commands/apk.dart'
;
...
@@ -70,7 +69,8 @@ Future main(List<String> args) async {
...
@@ -70,7 +69,8 @@ Future main(List<String> args) async {
// We've caught an exit code.
// We've caught an exit code.
exit
(
error
.
exitCode
);
exit
(
error
.
exitCode
);
}
else
{
}
else
{
printError
(
error
,
chain
.
terse
.
toTrace
());
stderr
.
writeln
(
error
);
stderr
.
writeln
(
chain
.
terse
);
exit
(
1
);
exit
(
1
);
}
}
});
});
...
...
packages/flutter_tools/lib/src/commands/test.dart
View file @
5ff2b1a1
...
@@ -90,8 +90,14 @@ class TestCommand extends FlutterCommand {
...
@@ -90,8 +90,14 @@ class TestCommand extends FlutterCommand {
Directory
testDir
=
runFlutterTests
?
_flutterUnitTestDir
:
_currentPackageTestDir
;
Directory
testDir
=
runFlutterTests
?
_flutterUnitTestDir
:
_currentPackageTestDir
;
if
(
testArgs
.
isEmpty
)
if
(
testArgs
.
isEmpty
)
{
if
(!
testDir
.
existsSync
())
{
printError
(
"Test directory '
${testDir.path}
' not found."
);
return
1
;
}
testArgs
.
addAll
(
_findTests
(
testDir
));
testArgs
.
addAll
(
_findTests
(
testDir
));
}
testArgs
.
insert
(
0
,
'--'
);
testArgs
.
insert
(
0
,
'--'
);
if
(
Platform
.
environment
[
'TERM'
]
==
'dumb'
)
if
(
Platform
.
environment
[
'TERM'
]
==
'dumb'
)
...
...
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