jolicode/asynit

Accept all method as a dependency even if it's not a test

lyrixx opened this issue · 0 comments

My test suite has became big (23 files, 3500 LOC) and I would like to refactor it a bit.
All my tests extends a WebTestCase class.
I would like to put some shortcut / helper in it, but ATM it's not possible because the callback in @Depend should be a test. (For recall, a test is a callback that start with the test keywork)

IMHO, It could be any valid callback.

You could argue I can easily transform my callback to a test, but in this case asynit will run the same test each time a class extends WebTestCase. It's a waste of resource.

Do you think we could allow any callback in @Depend?