olexale / bdd_widget_test

A BDD-style widget testing library
MIT License
101 stars 30 forks source link

Change void main to Future<void> #49

Closed jaumard closed 11 months ago

jaumard commented 11 months ago

I don't want to run each test file one at the time cause it take forever and rebuild everything each time.

So what I'm used to do is to load each main into a master main and launch them sequentially like:


void main() {
  await main1();
  await main2();
  ....
}

Currently that's not doable here. Is this something you could add? Or is there another way to do it ?

olexale commented 11 months ago

Not sure how this is related to the package, but you can achieve this by either manually creating the main function from which you call other main functions, like described here, or use a custom test runner, that will do this for you, like this one.

jaumard commented 11 months ago

I'll do that thanks :)