Skip to content
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

Tests failed (unexpected error) when run codecov #23

Closed
namchuai opened this issue Nov 26, 2020 · 8 comments
Closed

Tests failed (unexpected error) when run codecov #23

namchuai opened this issue Nov 26, 2020 · 8 comments

Comments

@namchuai
Copy link

namchuai commented Nov 26, 2020

I'm getting error when running flutter pub run codecov

Generating coverage...
Tests failed (unexpected error).
Testing failed.
Tests failed (unexpected error).
Testing failed.
Unhandled exception:
NoSuchMethodError: The method 'exists' was called on null.
Receiver: null
Tried calling: exists()
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1      Coverage.merge (file:///Volumes/DATA/DevTools/flutter/.pub-cache/hosted/pub.dartlang.org/codecov-1.0.0/bin/src/coverage.dart:39:43)
#2      main (file:///Volumes/DATA/DevTools/flutter/.pub-cache/hosted/pub.dartlang.org/codecov-1.0.0/bin/src/executable.dart:108:38)
<asynchronous suspension>
#3      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#4      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
pub finished with exit code 255

Although flutter test run successfully.

@thomasrockhu
Copy link
Contributor

@namchuai, is this still broken or has that been fixed via your comment here?

@namchuai
Copy link
Author

@thomasrockhu , it's still broken..

@thomasrockhu thomasrockhu self-assigned this Nov 29, 2020
@thomasrockhu
Copy link
Contributor

@namchuai is this running locally or are you doing this in CI? If it's on CI, can you post a build URL?

@namchuai
Copy link
Author

I'm running it locally. Will try to do it again and post any log I can get.

@anacoimbrag
Copy link

Hey guys! Having the same issue here, anyone could figure it out?

@lirc572
Copy link

lirc572 commented May 6, 2021

This could happen if the following line is never executed:

coverageFile = entities[0] as File;

Run the command with -v flag will show more information on the error.

For my case, it happened because a previous run resulted in an uncaught exception. Therefore one of the test process was never killed, and new test processes could not be spawned.
I solved the problem by manually killing all dart processes on my system.

@thomasrockhu thomasrockhu removed their assignment Jul 21, 2021
@naisanzaa
Copy link

+1

@thomasrockhu-codecov
Copy link
Contributor

Closing as this repo is deprecated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants