After using the “alchemist” library, I noticed that our test execution on CI takes more time, and sometimes it hangs on the tearDownAll function.
My use case of execution tests is a bit different. I run all the tests in one isolate, mainly to speed things up on CI. The testMain during test execution is called only once, along with the testExecutable at flutter_test_config.
Let’s say I have 100 golden tests. For each of them, the loadFonts function is called before the test, which takes time to execute. It is called 100 times. But should only once.
I would like to call this function only once before my tests execution, at flutter_test_config.
I forked the library, removed the loadFonts function call on every test execution, and moved it to the flutter_test_config. The problem was resolved.
Steps to reproduce
Create a test file with ten goldens tests.
Execute the tests.
Actual behavior: The loadFonts function is called ten times.
Is there an existing issue for this?
Version
v0.7.0
Description
Hi đź‘‹
After using the “alchemist” library, I noticed that our test execution on CI takes more time, and sometimes it hangs on the
tearDownAll
function.My use case of execution tests is a bit different. I run all the tests in one isolate, mainly to speed things up on CI. The
testMain
during test execution is called only once, along with thetestExecutable
atflutter_test_config
.Let’s say I have 100 golden tests. For each of them, the
loadFonts
function is called before the test, which takes time to execute. It is called 100 times. But should only once.I would like to call this function only once before my tests execution, at
flutter_test_config
.I forked the library, removed the
loadFonts
function call on every test execution, and moved it to theflutter_test_config
. The problem was resolved.Steps to reproduce
Actual behavior: The
loadFonts
function is called ten times.Expected behavior
The
loadFonts
function is called only once.Screenshots
No response
Additional context and comments
Thanks for the library 🚀