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
5141c1e8
Commit
5141c1e8
authored
Jun 26, 2017
by
Chris Bracken
Committed by
GitHub
Jun 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for unknown Xcode version string (#10979)
Also, correct an existing test description.
parent
dbb734dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
mac_test.dart
packages/flutter_tools/test/ios/mac_test.dart
+9
-1
No files found.
packages/flutter_tools/test/ios/mac_test.dart
View file @
5141c1e8
...
...
@@ -100,7 +100,7 @@ void main() {
ProcessManager:
()
=>
mockProcessManager
,
});
testUsingContext
(
'xcodeVersionText returns
null when xcodebuild is not installed
'
,
()
{
testUsingContext
(
'xcodeVersionText returns
formatted version text
'
,
()
{
when
(
mockProcessManager
.
runSync
(<
String
>[
'/usr/bin/xcodebuild'
,
'-version'
]))
.
thenReturn
(
new
ProcessResult
(
1
,
0
,
'Xcode 8.3.3
\n
Build version 8E3004b'
,
''
));
expect
(
xcode
.
xcodeVersionText
,
'Xcode 8.3.3, Build version 8E3004b'
);
...
...
@@ -108,6 +108,14 @@ void main() {
ProcessManager:
()
=>
mockProcessManager
,
});
testUsingContext
(
'xcodeVersionText handles Xcode version string with unexpected format'
,
()
{
when
(
mockProcessManager
.
runSync
(<
String
>[
'/usr/bin/xcodebuild'
,
'-version'
]))
.
thenReturn
(
new
ProcessResult
(
1
,
0
,
'Xcode Ultra5000
\n
Build version 8E3004b'
,
''
));
expect
(
xcode
.
xcodeVersionText
,
'Xcode Ultra5000, Build version 8E3004b'
);
},
overrides:
<
Type
,
Generator
>{
ProcessManager:
()
=>
mockProcessManager
,
});
testUsingContext
(
'eulaSigned is false when clang is not installed'
,
()
{
when
(
mockProcessManager
.
runSync
(<
String
>[
'/usr/bin/xcrun'
,
'clang'
]))
.
thenThrow
(
const
ProcessException
(
'/usr/bin/xcrun'
,
const
<
String
>[
'clang'
]));
...
...
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