Migrate docs_test to shard. (#139282)

This is part of the deprecation of adhoc tests.

Bug: https://github.com/flutter/flutter/issues/139153
This commit is contained in:
godofredoc
2023-11-30 13:29:41 -08:00
committed by GitHub
parent c10787bc6a
commit 8412adb981
3 changed files with 23 additions and 6 deletions

View File

@@ -266,6 +266,7 @@ Future<void> main(List<String> args) async {
'customer_testing': _runCustomerTesting,
'analyze': _runAnalyze,
'fuchsia_precache': _runFuchsiaPrecache,
'docs': _runDocs,
kTestHarnessShardName: _runTestHarnessTests, // Used for testing this script; also run as part of SHARD=framework_tests, SUBSHARD=misc.
});
} catch (error, stackTrace) {
@@ -1628,6 +1629,22 @@ Future<void> _runFuchsiaPrecache() async {
);
}
// Runs docs.
Future<void> _runDocs() async {
printProgress('${green}Running flutter doc tests$reset');
await runCommand(
'./dev/bots/docs.sh',
<String>[
'--output',
'dev/docs/api_docs.zip',
'--keep-staging',
'--staging-dir',
'dev/docs',
],
workingDirectory: flutterRoot,
);
}
/// Runs the skp_generator from the flutter/tests repo.
///
/// See also the customer_tests shard.