lucky_flow icon indicating copy to clipboard operation
lucky_flow copied to clipboard

Parallel testing

Open bartblast opened this issue 5 years ago • 4 comments

Is parallel testing supported (or planned) in LuckyFlow?

bartblast avatar Aug 16 '19 17:08 bartblast

Currently supported? no, but planned.... yes (I hope at least). I'd for sure like to add it in, but I'm waiting until the MT stuff in crystal is built-in and not just preview by flag.

jwoertink avatar Dec 06 '19 22:12 jwoertink

Because this library uses a single browser session it would not be possible to do parallel testing right now. I have no idea how they're planning on implementing parallel testing but we'd have to make it a session per thread or create a new session for every spec which would slow tests down by quite a bit (session essentially equals browser window)

matthewmcgarvey avatar Jun 09 '20 01:06 matthewmcgarvey

I think this would be quite complex since we'd also need to change Avram to support different transactions per thread, and then use a session or something (as @matthewmcgarvey mentioned) to make sure Lucky is using the correct connection when rendering the page.

All this is possible, but is not simple 😂 So yeah this would be cool, but will likely be a ways out.

paulcsmith avatar Jun 09 '20 16:06 paulcsmith

Just tossing stuff out, but could we do something like where we open a single browser, then run flow specs in their own tabs? That would reduce overhead of opening and closing the browser, and it would allow sharing cookies and session if need be.

I do agree though, whatever the path for this, we're still quite a ways out from even beginning to tackle this.

jwoertink avatar Jun 09 '20 16:06 jwoertink