invertase / spec

✅ A streamlined testing framework for Dart & Flutter.
https://docs.page/invertase/spec
Apache License 2.0
303 stars 18 forks source link

Set location of Flutter/Dart SDK #47

Open nilsreichardt opened 1 year ago

nilsreichardt commented 1 year ago

At the moment, spec just uses the global Flutter version that is used when running flutter or dart. However, you might want to pass the path to another SDK path, like when using FVM.

It would be great when you set the path to the Flutter / Dart SDK or what the best option would be to use the location from the melos.yaml (https://melos.invertase.dev/configuration/overview#sdkpath) - related to #9 (?)

rrousselGit commented 1 year ago

That adds a lot of complexity for a niche use case.

I'd be more inclined to suggest running spec in a scope where flutter/dart are using the version of your choice. Like maybe change the ENV to do what you want.