cancel
Showing results for 
Search instead for 
Did you mean: 

Unit and Opa tests in SAP BAS

marie-pierre_mela
Product and Topic Expert
Product and Topic Expert
1,191

Hi,

in Web Ide, when wanting to run a test, one just had to right click on the testsuite.qunit.html and Run as Unit Test.

What is advised to run tests in Business Application Studio ?

Thanks

View Entire Topic
selamis
Discoverer
Hello Marie-Pierre,The way I do it is simply by:
  1. Opening a Terminal and "cd" to your current Project.
  2. Typing "npm run unit-tests"

Your testsuite.qunit.html should open in a new tab.

VS

marie-pierre_mela
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks.

Indeed I created a script which I can launch using "npm run frontend-unit-test"

I also had to adapt as BAS can only use ChromiumHeadless. So one only get the nb of passed or failed tests and nothing opens in a new tab.