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
1fb2158e
Unverified
Commit
1fb2158e
authored
Mar 26, 2023
by
Shibata Ryusei
Committed by
GitHub
Mar 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add lints test for all templates (#120526)
Add lints test for all templates
parent
25174d62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
analyze_all_templates_test.dart
...ls/test/integration.shard/analyze_all_templates_test.dart
+45
-0
No files found.
packages/flutter_tools/test/integration.shard/analyze_all_templates_test.dart
0 → 100644
View file @
1fb2158e
// 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
'package:file/file.dart'
;
import
'package:flutter_tools/src/base/io.dart'
;
import
'package:flutter_tools/src/globals.dart'
as
globals
;
import
'../src/common.dart'
;
import
'../src/context.dart'
;
import
'../src/test_flutter_command_runner.dart'
;
void
main
(
)
{
group
(
'pass analyze template:'
,
()
{
final
List
<
String
>
templates
=
<
String
>[
'app'
,
'module'
,
'package'
,
'plugin'
,
'plugin_ffi'
,
'skeleton'
,
];
late
Directory
tempDir
;
setUp
(()
{
tempDir
=
globals
.
fs
.
systemTempDirectory
.
createTempSync
(
'flutter_tools_analyze_all_template.'
);
});
tearDown
(()
{
tryToDelete
(
tempDir
);
});
for
(
final
String
template
in
templates
)
{
testUsingContext
(
'analysis for
$template
'
,
()
async
{
final
String
projectPath
=
await
createProject
(
tempDir
,
arguments:
<
String
>[
'--no-pub'
,
'--template'
,
template
]);
final
ProcessResult
result
=
await
globals
.
processManager
.
run
(<
String
>[
'flutter'
,
'analyze'
],
workingDirectory:
projectPath
);
expect
(
result
.
exitCode
,
0
);
});
}
});
}
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