sirix-web-frontend icon indicating copy to clipboard operation
sirix-web-frontend copied to clipboard

Setup some CI/CD tests

Open JohannesLichtenberger opened this issue 6 years ago • 3 comments

Have to read about how to test the frontend stuff... besides Unit Tests for some stuff.

JohannesLichtenberger avatar Oct 07 '19 18:10 JohannesLichtenberger

I recommend using a webdriver. Selenium is a good one, and it works well with Python if you import selenium-python. @mosheduminer is setting up a Python library if I'm not mistaken.

I don't know your guys' dev environs, but it's easy to simply import selenium in a text editor / Sublime/VS Code and go from there: https://selenium-python.readthedocs.io/

tashachin avatar Jan 02 '20 00:01 tashachin

I'm more of a Java/Kotlin engineer, but Python may be okay, too, for sure :-) thanks

JohannesLichtenberger avatar Jan 02 '20 01:01 JohannesLichtenberger

I found a step-by-step guide for setting up Selenium in Java (Selenium has a lot of support) here.

It would add a dependency, however, as you'd need to install gecko driver for driving through Firefox and adjust a few lines of code. Selenium comes out of the box using Chrome and plays nice with Opera. Hope this helps :)

tashachin avatar Jan 02 '20 01:01 tashachin