-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Run tests with Electron #1451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@bokuweb this is really cool! I'm wondering how we can best support this. I'm not convinced AVA itself should support Electron as a process target. Perhaps though the "test runner pool" could be abstracted so that other pools can be provided by users. In your case that would be an Electron pool. We'd have to determine how to provide CLI flags and This is lower-level than #1043 but it could be quite interesting. It may work for Wallaby.js as well. @avajs/core, @ArtemGovorov, thoughts? |
@novemberborn I like the idea of the abstracted "test runner pool". It might make it easier for wallaby (as well as others) to integrate with AVA. I think it is generally a good thing to separate the testing framework part from the test runner part, makes it easier to reuse/hook into/integrate with those parts. |
Relevant issue: #1428 |
Heh I wonder if that was still in by subconscious 👍 |
We're focusing on running just Node.js code for the foreseeable future. |
Hi. i'm developing
Avaron
(https://github.com/bokuweb/avaron), which forked fromvdbwouter/electron-ava
, to run tests with electron .(plase see also,why
? (https://github.com/bokuweb/avaron#why )).It works with AVA v0.21+.Avaron
is not forked fromAVA
, but copy and edit below files fromAVA
to launch electron.If I can hook into the below point, I may be able to do Electron support without having to fork/copy from AVA. Is there a good idea?
avaron/lib/cli.js
I needed to add options for
electron
(renderer
,windowOptions
andfixture
for now).avaron/lib/fork.js
I needed to modify
child_process.spawn
to launch electron process.related
avajs/awesome-ava#21
The text was updated successfully, but these errors were encountered: