Skip to Content
0

XS Unit w/ coverage=true parameter results in error w/ Destination

Apr 05, 2017 at 02:03 PM

75

avatar image
Former Member

Hi Folks,

When I run some unit tests, either via service call or WEB IDE, and ask for Code Coverage, it fails saying my user is not authorized to access a Destination used in my code.

If I don't use the Code Coverage, it works.

Summarizing below the behavior of my user on several cases:

  • Trigger the code somehow but via unit tests: works.
  • Trigger unit tests via service call without Code Coverage: works.
  • Trigger unit tests via WEB IDE without Code Coverage: works.
  • Trigger unit tests via service call with Code Coverage: FAILS (Destination's authorization).
  • Trigger unit tests via WEB IDE with Code Coverage: FAILS (Destination's authorization).

When I inspect the code via debug using the expression...

$.session.getUsername()

...I see the user is correct on all cases.

Is this a known issue? Does anybody have any idea about what is going on? I can provide more details if needed.

Thanks.

Fernando

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers