obsidian-execute-code icon indicating copy to clipboard operation
obsidian-execute-code copied to clipboard

Tests!

Open chlohal opened this issue 2 years ago • 3 comments

We're seeing a lot of bugs (#119, #109, #108, #95) that would be relatively easy to automatically test. If we could set up a test suite & use GitHub Actions's free tier to run it on every PR, I think that would be helpful to catch regressions

chlohal avatar Oct 13 '22 18:10 chlohal

You are completely right and tests are great! But testing the user interface will be a challenge to implement.

twibiral avatar Oct 13 '22 19:10 twibiral

True, it'll be a challenge! I read some articles on testing Electron apps, but most of them assume that you're the owner of the app, which doesn't apply for us.

chlohal avatar Oct 13 '22 23:10 chlohal

This might be a plausible approach: https://forum.obsidian.md/t/standard-approach-for-writing-automated-end-to-end-tests-for-plugins/31535/2

milan338 avatar Oct 14 '22 05:10 milan338