-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Null safety migration #39
base: master
Are you sure you want to change the base?
Conversation
Hmm, if I use |
Does that behavior appear also if you checkout the master branch? |
Yes, at commit |
Ok, then I think creating a new issue may be the best way to go to keep track of everything in a dedicated thread. |
Apologies, did I miscommunicate? The commit, Are you still suggesting to file a new issue? You can try this diff: modified test/stub_package/lib/stub_package.dart
@@ -1,3 +1,7 @@
int add(int a, int b) {
return a + b;
}
+
+int subtract(int a, int b) {
+ return a - b;
+} Then run |
Thank you very much for the additional information. I think I have understood now 👍 I can confirm that there was a problem with overall line coverage in commit I manually tested
All three cases produced the expected result (respectively failed, failed, succeeded) You should not be experiencing the issue anymore. Can you verify? |
Looks great!
|
@pulyaevskiy Can we get this merged? or give some more direction if it needs changes. |
@civts Would you be keen to publish a fork? |
I haven't looked closer what was changed but there's already one fork: https://pub.dev/packages/test_cov |
@jpnurmi from what I can see https://pub.dev/packages/test_cov diverged quite a bit from this implementation. Looking around, I found another package, https://github.com/f3ath/check-coverage, which is meant to only check when the coverage is below a given threshold, without generating the report. Given that, @QuirijnGB, I am thinking about making a new package from scratch that works similar to this one but does not require to generate the intemediate |
@civts Oh, ok. I'm using Codecov + their ready-made GitHub Actions so all I needed was |
@jpnurmi For purely generating the #Run tests and collect coverage info
dart run test --coverage .tempCoverageDir
#Generate lcov.info file in ./coverage
dart run coverage:format_coverage -l -c --report-on lib -i .tempCoverageDir --packages .packages -o coverage/lcov.info
#Clean up unneeded coverage info
rm -r .tempCoverageDir Worth noting that both these packages are maintained by dart-lang. |
Or just run |
Yep. I myself would prefer to have a package that takes care of everything for me. As for test_cov, I tried to run it in one project and it freezed 😅 |
Thanks, this pull request did the trick for me, the old code is no longer compatible with moor. The test_cov package did also not work for me. I enforced the pull request with:
in the pubspec.yaml Edit: hopefully this PR gets merged soon. |
why is taking so long to approve this pull request? |
I do not know if this repository is being maintained anymore. |
This pull request removes discontinued lcov dependency and migrates the package to null safety.
Following Flutter guidelines, package version gets updated from
0.5.0
to0.6.0
Closes #38 , #37, #33