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
c46ad29c
Commit
c46ad29c
authored
Jan 28, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test commands checks for test fir
parent
12419d6b
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 @
c46ad29c
...
...
@@ -8,7 +8,6 @@ import 'dart:io';
import
'package:args/command_runner.dart'
;
import
'package:stack_trace/stack_trace.dart'
;
import
'src/base/context.dart'
;
import
'src/base/process.dart'
;
import
'src/commands/analyze.dart'
;
import
'src/commands/apk.dart'
;
...
...
@@ -70,7 +69,8 @@ Future main(List<String> args) async {
// We've caught an exit code.
exit
(
error
.
exitCode
);
}
else
{
printError
(
error
,
chain
.
terse
.
toTrace
());
stderr
.
writeln
(
error
);
stderr
.
writeln
(
chain
.
terse
);
exit
(
1
);
}
});
...
...
packages/flutter_tools/lib/src/commands/test.dart
View file @
c46ad29c
...
...
@@ -90,8 +90,14 @@ class TestCommand extends FlutterCommand {
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
.
insert
(
0
,
'--'
);
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