Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers