Comments (7)
Yes, the correct way of saying would have been I would have assumed the second way works because it is the one that is promoted in the docs.
🙂
The tests run for a couple minutes so running them twice is twice the time.
from sonar-flutter.
I created a PR #22 to fix this issue.
If you want to test it, here is the fixed jar :
sonar-flutter-plugin-0.2-1-fix13.zip
from sonar-flutter.
Hi,
@kuhnroyal PR's are merged and available in release 0.3.0.
I'm closing the issue.
from sonar-flutter.
Just switched to 1.19.0-0.0.pre
branch and made a quick test.
$ flutter test --machine --coverage >tests.output
$ sonar-scanner
throws an Exception
ERROR: Error during SonarScanner execution
java.lang.NullPointerException
at fr.insideapp.sonarqube.flutter.tests.FlutterTestReportParser.parse(FlutterTestReportParser.java:58)
at fr.insideapp.sonarqube.flutter.tests.FlutterTestReportParser.parse(FlutterTestReportParser.java:42)
at fr.insideapp.sonarqube.flutter.tests.FlutterTestSensor.execute(FlutterTestSensor.java:57)
BUT
$ flutter test --machine > tests.output
$ flutter test --coverage
$ sonar-scanner
works as intended (assuming you're not using SonarQube 8.1+)
So you can use the second solution 😉
from sonar-flutter.
Thanks for the test, I know the second way works but the goal would be to have the same outcome in one run and reduce build times by several minutes :)
from sonar-flutter.
I know the second way works
You said you have not used sonar-flutter yet, that's why I made the tests 🤔
btw, I'm not sure using both options will reduce the total time. I don't see any difference but maybe my project is not as large as yours.
from sonar-flutter.
I added #25 which builds up on #22 and further improves test parsing, wrong test counts and duration.
from sonar-flutter.
Related Issues (20)
- Could not startup process 'flutter analyze --no-fatal-warnings --no-fatal-infos' HOT 4
- Sonar-Flutter Plugin not working in SonarQube 9.9.x or 10.2.x HOT 6
- Simplify "Run analysis" documentation HOT 2
- GitHub actions cannot start up flutter analyze HOT 10
- Issue Multi-Module for code coverage does not show in a report HOT 3
- 'The main branch has no lines of code' problem HOT 4
- Vulnerability issue shows on my local but not SonarQube Dashboard. HOT 2
- Analysis fails if any `pubspec.yaml` file does not have a `dependencies` key HOT 2
- java.lang.IllegalStateException: Error while running 'flutter analyze --no-fatal-warnings --no-fatal-infos' (exit 1): 6632 issues found. (ran in 3.3s) HOT 13
- scanner fails to report the results back to qube - Current edition does not support branch feature HOT 4
- How to scan dependencies HOT 1
- Not getting issue in SonarQube Dashboard and removed existing analysis_options.yaml HOT 6
- Exclusion and lcov HOT 2
- IllegalArgumentException while analyzing Dart of Flutter project
- Files aren't indexed as dart with SonarQube 10.4.1 HOT 2
- [QUESTION] Use sonarlint in connected mode
- [FATAL] Could not startup process 'flutter analyze --no-fatal-warnings --no-fatal-infos'. HOT 1
- [FATAL] pubspec.yaml does not exist in Monorepository
- [QUESTION] Support dart code linter HOT 1
- Flutter plugin installed but not used is sonar-scanner-cli HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonar-flutter.