on 2018 May 10 5:37 PM
I have an addon which contains unit tests under /acceleratoraddon/web/testsrc
. These tests run just fine when run from within an IDE, but they aren't picked up at all by either ant alltests
or ant allwebtests
. I'm using Hybris version 6.6.0.0.
I came across this 2014 post: https://answers.sap.com/questions/12750447/how-to-test-addon-controllers.html and attempted to implement the recommendation but it didn't work because the tests would't compile when copied to web/testsrc
in the storefront extension. In addition to this, that directory is under source control so copying files there during the build is highly undesirable.
I am also aware of TestClassesUtil
(invoked by ant), which scans the hybris environment for test classes on the classpath but I have been unsuccessful at getting it to pick up the tests in the addon.
Is there currently any way of getting the unit tests in an addon to run when invoking those ant targets?
I struggle with the same problem, any solutions in the meanwhile?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.