No, EMMA won't work for JavaScript.

I don't think there is currently anything available for code coverage
of JavaScript in Android.

If you are using JavaScript inside a WebView for example and have the
JavaScript sitting in an assets directory or on a server, then I think
you might be currently out of luck for coverage of the JavaScript.

If you are using ScriptEngineManager and including the JavaScript
directly in your Java code, then perhaps it's possible, but I haven't
tried it as it's not an approach I have ever required. As a result,
take that for what it's worth (not much), but if it does work, you
might be able even temporarily, to include your JavaScript in a class
and get coverage of it that way.

Regards,

Peter



On Jun 16, 9:46 pm, super <[email protected]> wrote:
> Hi,
>
> What code coverage tools are available for Javascript for android? I
> understand that Emma is a code coverage tool for android, but does it
> work for Javascript?
>
> Thank you

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to