Skip to content

(Fully) support package:test in DartPad #3213

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

Open
lrhn opened this issue Mar 24, 2025 · 0 comments
Open

(Fully) support package:test in DartPad #3213

lrhn opened this issue Mar 24, 2025 · 0 comments

Comments

@lrhn
Copy link
Member

lrhn commented Mar 24, 2025

The test package is not a supported package. Or rather, the Analyzer thinks it's not, giving the error:

Unsupported package: 'package:test'.

plus the info

The imported package 'test' isn't a dependency of the importing package.

The import actually works if you run the test. The stack trace on the failure looks a little weird, but it's there.

It's sometimes useful to use DartPad to share (possibly failing) tests.
It takes some work to extract the failing test from the test-framework, and that would be much easier of DartPad would allow import 'package:test/test.dart';.

(Even more test integration would be nice too, but simply being able to run is a great start.)

@lrhn lrhn changed the title Support package:test in DartPad (Fully) support package:test in DartPad Mar 24, 2025
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

1 participant