Description
Assertions are not being counted as covered code.
Repository
CI/CD
https://travis-ci.com/aagarwal1012/Animated-Text-Kit
Example
See some examples:
Uploader
https://github.com/aagarwal1012/Animated-Text-Kit/blob/master/.travis.yml#L33
Additional Information
I stumbled across this old issue, but it has been resolved for years:
opened 04:14PM - 02 Aug 18 UTC
closed 06:30AM - 29 Aug 18 UTC
a: tests
severe: regression
dependency: dart
```sh
flutter test --coverage
```
now shows all assert as not executed anymor… e.
(dart2) $ flutter doctor -v
[✓] Flutter (Channel master, v0.5.8-pre.215, on Mac OS X 10.13.6 17G65, locale en-AT)
• Flutter version 0.5.8-pre.215 at /Users/zoechi/flutter/flutter
• Framework revision eda03e2586 (5 hours ago), 2018-08-02 12:02:32 +0200
• Engine revision a76054f4b6
• Dart version 2.0.0-dev.69.5.flutter-8bad5c7b29
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
• Android SDK at /usr/local/opt/android-sdk
• Android NDK at /usr/local/opt/android-sdk/ndk-bundle
• Platform android-28, build-tools 28.0.1
• ANDROID_HOME = /usr/local/opt/android-sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 23.1.2
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.2)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 26.0.3
• Dart plugin version 182.3569.4
[✓] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
• No issues found!
And I also found this:
tom
October 26, 2020, 2:30pm
2
@awhitford , if you take a look at the raw coverage uploaded to Codecov in the Build
tab, you’ll see that all of the reports show those lines as no covered
I’m not sure why this is the case for collecting coverage in dart
.