Open mhemesath opened 13 years ago
even the current stuff i have for async exports is super hacky, database clients should just queue queries before they are connected
So are you going to deprecate support for async exports then?
not any time soon but probably
I have a thought around removing polling for async support. Basically, the change is to immediately export all keys (test names) to be used for the test suite. Then asynchronously add the values (tests) as they are ready to be executed.
In order to for expresso to know when to execute the test, we can watch the properties of the keys the module exports right away using code similar to this: https://gist.github.com/175649.
This will also fix hanging issue that occurs when a test file exports no tests, as expresso won't be waiting on any keys to be set.
Thougths?