Hi Experts
david.kunz2 thomas.jung maxim.naidenov sarah_n
For testing CAP projects(node.js), which testing frameworks shall be used for System Testing?
With UIVeri5 getting deprecated, are there any examples of testing the node.js code in CAP via WDIO or WDI5?
Is unit testing with Mocha and Chai sufficient or we shall carry out the system tests using any suggested framework?
Thanks
Kanika
Request clarification before answering.
hm, nothing out of the ordinary here with regards to cds.test() and wdi5:
- use cds.test() (or manual bootstrap of your CAP app) to do unit-, api- and service-testing
- use wdi5 for integration- and e2e-tests
for the latter, if you have you CAP app running (aka a webserver serving the UI), you can point the wdio hostname, port and path (https://webdriver.io/docs/configurationfile/) e.g. to "localhost", 4004 and "/app" and the wdi5 configuration (https://ui5-community.github.io/wdi5/#/configuration) to the index file of your UI (e.g. "index.html").
Happy testing!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.