sqlpage / SQLPage

Fast SQL-only data application builder. Automatically build a UI on top of SQL queries.
https://sql.datapage.app
MIT License
1.57k stars 89 forks source link

Add BDD test framework #524

Open wucke13 opened 2 months ago

wucke13 commented 2 months ago

What are you building with SQLPage ?

A small point of sales proof of concept.

What is your problem ? A description of the problem, not the solution you are proposing.

I want to test my web-app frequently.

Describe the solution you'd like

I would like to describe the behavior of the website in Gherkin syntax (Given ..., When ..., Then ...). For webapps based on databases that mostly consist of workflows through forms that is quite a natural way to test. The Ruby community was quite bold on Behavior Driven Development as well.

Describe alternatives you've considered

Test vectors sequences could also be a viable approach to test UI interaction sequences

lovasoa commented 1 month ago

Hi !

I'm not sure about bundling testing tools inside SQLPage. There is a large number of testing solutions that already work much better than anything we could implement ourselves in a reasonable time.

To test the official site, we use playwright, which I think results in fairly readable end-to-end tests: https://github.com/lovasoa/SQLpage/blob/main/tests/end-to-end/official-site.spec.ts