You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Expected behavior
The loadFonts function is called only once.
Screenshots
No response
Additional context and comments
Thanks for the library 🚀
The text was updated successfully, but these errors were encountered:
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 🚀
The text was updated successfully, but these errors were encountered: