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

bug: format_coverage does now work when invoked with dart pub global run #522

Open
mrverdant13 opened this issue Jan 3, 2024 · 2 comments

Comments

@mrverdant13
Copy link

mrverdant13 commented Jan 3, 2024

Details

Case 1 - command invoked through dart pub global run

When running the following command:

dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib

The following exception is thrown:

Cannot open file, path = '..\..\..\..\..\..\..\..\..\AppData\Local\Pub\Cache\global_packages\coverage\.dart_tool\package_config.json' (OS Error: The system cannot find the path specified. , errno = 3)

However, if I go to the given path, I can find the referenced package_config.json file.

Case 2 - command directly invoked through the global executable

On the other hand, the expected output (the lcov.info file) is properly generated when using the following command:

format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib

Expected behaviour

The same lcov.info file should be generated in both cases.

More context

OS: Windows 11
Dart SDK version: 3.2.3
coverage version: 1.7.2

@mosuem mosuem transferred this issue from dart-archive/coverage Aug 28, 2024
@mosuem

This comment has been minimized.

@Victowolf

This comment has been minimized.

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

No branches or pull requests

3 participants