insideapp-oss / sonar-flutter

SonarQube plugin for Flutter / Dart
Other
449 stars 82 forks source link

Simplify "Run analysis" documentation #199

Closed kputh closed 8 months ago

kputh commented 1 year ago

This is more of a remark. README.md uses this code sample

# Download dependencies 
flutter pub get 
# Run tests with User feedback (in case some test are failing)
flutter test
# Run tests without user feedback regeneration tests.output and coverage/lcov.info
flutter test --machine --coverage > tests.output 

I believe these three commands can be condensed into

flutter test --coverage --file-reporter "json:tests.output"

flutter test runs flutter pub get by default, and flutter test --file-reporter prints test results to console and a file at the same time. Combining these three commands into one can save time, particularly in projects with many test cases.

BTW, a better extension of the test results file is probably jsonl.

github-actions[bot] commented 9 months ago

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] commented 8 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.