Skip to content

Commit

Permalink
melos bs to sync symbolic link
Browse files Browse the repository at this point in the history
  • Loading branch information
masa-tokyo committed Dec 11, 2023
1 parent b9f0d35 commit eb8e556
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions scripts/bootstrap_package/test/analysis_format_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,29 @@ void main() {
'This is a test package for analysis and format check.',
],
);
print('exitCode: ${packageResult.exitCode}');
print('packageResult.exitCode: ${packageResult.exitCode}');

// パッケージ生成後のanalysis_options.yamlのシンボリックリンクを同期させる
final melosBsResult = Process.runSync(
'melos',
['bs'],
);

expect(melosBsResult.exitCode, 0, reason: melosBsResult.stderr.toString());
// テスト実行
final analysisResult = Process.runSync(
// 'melos',
// ['run', 'analyze'],
'dart',
['analyze', '.'],
workingDirectory: path.join('packages', packageName),
);
expect(
analysisResult.exitCode,
0,
reason: '[ERROR]`melos run analyze` faild:\n${analysisResult.stderr}',
reason:
// ignore: lines_longer_than_80_chars
'[ERROR]stderr:\n${analysisResult.stderr}\nstdout:\n${analysisResult.stdout}',
);

Process.runSync('melos', ['run', 'format']);
Expand Down

0 comments on commit eb8e556

Please sign in to comment.