-
Notifications
You must be signed in to change notification settings - Fork 29
Conversation
03de3bc
to
e42175e
Compare
e42175e
to
1db4dc9
Compare
I would love to see that one merged to start testing additional Electron functionality, e.g. introduced with #100 ... Still, some stuff to be fixed (especially on Linux, but I have no device to test that locally). |
1db4dc9
to
73dd48b
Compare
73dd48b
to
9fd0f68
Compare
@pinussilvestrus I can help out with unit tests on Linux, as that's my daily driver. I'm not very clear on what needs to be tested here though. Would be great if you could point me on what to test. |
Thanks for your help @Shriram-Balaji ! Its basically this failing test case. This PRs only aims to add a basic test suite with a simple starting test, which currently fails on Linux. |
@pinussilvestrus After some hiccups, I've got the unit tests working. So the tests were not working on CI/CD because when In server environments, we don't have a GUI and hence have to use I've also done some renaming to the scripts, because we have both |
@pinussilvestrus Also, do you think we should use jest instead of mocha, to keep it consistent with excalidraw web? |
Cool stuff 👏
makes absolute sense I guess |
.. but we should ensure tests work properly on mac and windows, too. Which they did before / without adding the xvfb support, am I right? |
Yes, we should add test workflows for macOS and Windows too. For Windows - there's a "screen" available to run even in headless mode, and works on CI. For macOS, I can't seem to find the right documentation, but in theory, it should work without us needing to install / configure Xvfb.
Well no, the tests were run against only the |
@pinussilvestrus So I'm still running into the same errors for both macOS and Windows (Added separate workflows to run tests on em') . Could you try running the tests on your local machine, and check if the Mac tests work? Afaik they should work. |
@pinussilvestrus Can you try |
It does not work for me unfortunately. Maybe I can figure out a fix for that. |
Hmm, any luck with it @pinussilvestrus? Can you check if this works for you? I doubt that it would, but worth a try I guess. The only other option I can think of is to remove Looks like there's some issue of spectron being compatible with electron v9, electron-userland/spectron#610. The error reported seems to be on Mac, not sure if it's related. I think it might be worth it to downgrade electron to v8.x, considering that it might be more stable. |
d18fb69
to
787def4
Compare
* Add test:spec script * Replace test:code with lint:code * Update lockfile
* Increase mocha timeout * Update electronBinary path
* Runs both lint, test for multiple platforms * WIP: Disable test-windows workflow
@pinussilvestrus I have downgraded electron to 8.3.0, and along with that have gotten the tests running on both But, I can't seem to clearly figure out why, windows is not working. Would it be ok for us to add the |
I think that's ok for now. Can you maybe add an issue for adding windows unit test support as a next step? Then we would be ok with merging this one |
Just created an issue for that #163 |
To be rebased with #43
Currently not working