Skip to content

Add ability to run unit and widget tests from DartPad #2191

@jorgecoca

Description

@jorgecoca

As a developer, I find DartPad incredibly useful to learn and teach easy to semi-complex Flutter/Dart topics in a preconfigured environment, and that's priceless.

However, one thing I wish DartPad had to make it 💯 would be the ability to write and run automated tests against the code written in the main workspace.

Why you might be wondering? 🤔

Flutter/Dart has an incredible opportunity to elevate the coding practices of the community overall. It is quite common these days to see open sources projects of all kinds written in Flutter/Dart to include a strong battery of tests. Even our loved counter project includes a file with a simple widget test, encouraging developers to keep improving on those tests. And, at the same time, I have not seen other similar tools offering something like this. Testing tends to be an after thought in other stacks, but not in Dart/Flutter.

I think having the option to add tests in DartPad, especially in combination with other tools like workshops, could be an incredible teaching tool that would educate developers not only on writing beautiful UI experiences but also writing robust automated tests that maintain the fidelity of those experiences over time.

I know many unicorns 🦄 working with me that would love this functionality.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions