jw
07/10/2024, 2:40 PMEdoardo Luppi
07/10/2024, 3:03 PMjw
07/10/2024, 3:25 PMjw
07/10/2024, 3:25 PMjw
07/10/2024, 3:46 PMdescribe
function that no-ops. Not great, but good enough.Edoardo Luppi
07/10/2024, 3:57 PMfunction run(): Promise<void>
But couldn't find a way to not execute the test cases when the file got loadedEdoardo Luppi
07/10/2024, 3:58 PMEdoardo Luppi
07/10/2024, 3:59 PMI think I can just fake it by exposing my ownI'd have to see an example to understand this partfunction that no-ops.describe
jw
07/10/2024, 4:00 PMjw
07/10/2024, 4:00 PMEdoardo Luppi
07/10/2024, 4:01 PMjw
07/10/2024, 4:02 PMjw
07/10/2024, 4:02 PMjw
07/10/2024, 4:02 PMEdoardo Luppi
07/10/2024, 4:05 PMit's only when there's no testing framework present does the default implementation in kotlin.test run things immediatelyAhhh I wasn't aware of this. So basically if there is e.g. Mocha, it will not run the test cases on file load, but it'll wait for Mocha to call them?
Edoardo Luppi
07/10/2024, 4:05 PMjw
07/10/2024, 4:06 PMjw
07/10/2024, 4:06 PMEdoardo Luppi
07/10/2024, 4:09 PMfunction suite(name, ignored, suiteFn) {
_init_properties_TestApi_kt__c5696e();
adapter().suite(name, ignored, suiteFn);
}
I suppose that it's what you're talking about, it detects the test framework and calls the appropriate functionjw
07/10/2024, 4:11 PMQUnit
object or the describe
+ it
top-level functionsEdoardo Luppi
07/10/2024, 4:11 PMxyz
function,
and you'll call that xyz
function via your own tooljw
07/10/2024, 4:12 PMEdoardo Luppi
07/10/2024, 4:13 PMxyz
function, how do you actually run the test cases?
That's the bit I'm missing nowEdoardo Luppi
07/10/2024, 4:13 PM@Test
annotationjw
07/10/2024, 4:14 PMdescribe
function for later invocationjw
07/10/2024, 4:15 PMEdoardo Luppi
07/10/2024, 4:20 PMFrameworkAdapter
, that would have been the easy route probablyEdoardo Luppi
07/10/2024, 4:21 PM