woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.3k stars 371 forks source link

Add test framework for frontend (e2e) #2694

Open 6543 opened 1 year ago

6543 commented 1 year ago

Just like unittests and integration tests in backend ... and tests to frontend

as we can mock the whole api and use >> https://playwright.dev << for e2e tests

anbraten commented 1 year ago

Playwright was very good at this in the past.

6543 commented 1 year ago

i have heared of "vite test" ... playwright is more a browser emulation and run tests in it?!?

qwerty287 commented 1 year ago

@6543 you probably mean https://vitest.dev/

anbraten commented 1 year ago

Playwright does e2e testing, yes. Vitest is pretty nice for unit testing. However unit-testing UI pieces is most of the time pretty useless IMHO and the logical part in the UI is rather minimal.