Dear all,
as i am learning to implement units and integration test for servoy application.
I wonder if you can help me with:
- A good introduction on how to use unit tests in Servoy
- An good example of how complex tests cases are implemented. I tried to look at the servoy modules (e.g. svyUtils, svySecurity in Github),
but there are plenty of them. So if some one (maybe from Servoy Team) know which module I should look at, it would be very hefpful. - As many functions we implement will operate on foundset data, I wonder what is a good strategy to generate this data for the tests.
From the servoy modules I learn that I can run the tests inside a database transaction and rollback the transaction after completing the tests.
Inside the transaction i can create the data within the test procedure. However, i wonder if some of you have other approach to this.
As it has to be a very fundamental topic, it might already be asked previously on the forum. However, I could not find the topic on my search.
Anyway, I would be very thankful for any help in this topic.
Best regards and many thanks in advance.
Nam