Writing automated tests for packages
-
@girish Beautiful I'll get tests going for Directus then. Since I am being paid for it's packaging.
-
@murgero Yay
unit testing definitely a great string to add to your bow and hopefully time-saver for adding more apps without adding maintenance whack-a-mole overhead too when you'd hope the tests will do the monitoring so we don't need to so much.
-
@murgero Thanks, if you have any question, feel free to ask and I am happy to help.
-
Can you tell me a bit about your setup? I assume this is a Linux desktop distro? Any pointers on initial setup would be appreciated!
-
@girish - i watched the video and was able to discern most of your setup, but would still appreciate a sanity check if you have time on how you got your test harness up and running. Having troubles getting Selinium to "run"
-
@doodlemania2 Happy to help!
Yes, I am on Ubuntu but @nebulon is on Arch, so that should work as well. Which part are you stuck in? Did the
npm install
go through? What's your setup like? -
@girish Arg how did you enable the browser on the right? (Selenium/Chromedriver)
-
It will be initialized by the test.js script. The
require
s are important as well as thebefore
andafter
hook. See https://git.cloudron.io/cloudron/minio-app/-/blob/master/test/test.js -
@nebulon Yea I just wanted to reply never mind, I copied the tests from the alltube app which do not even use selenium so yeeaa my mistake.
Now I took the nextcloud tests and will learn from them
-
This post is deleted!