I am trying to test some common code which uses Ktor to make API calls. I need one API to be performed and then when it returns do the rest of the tests. The common currently supports Android, iOS and JS. Questions:
• Is there something like @BeforeAll or @BeforeClass? Third-party library is fine, if they support MP.
• How do I call an async method (uses callback pattern) in @BeforeTest method, but hold execution of the rest of the tests until the initial API returns (it contains auth data needed for all future API calls).