JSCoverage for the locale specific js files

Questions, problems, suggestions, bug reports, and so on.
Post Reply
subba rao

JSCoverage for the locale specific js files

Post by subba rao » 2009-04-29 7:33 am

Hi,

I am using datepicker plugin in jQuery and in that i am using france specific locale, when i ran jscoverage for this file i am getting a message as SyntaxError: illegal character. jscoverage wont support locale??

Thanks

Subba rao :)

Ed
Posts: 120
Joined: 2008-10-11 6:52 pm

Re: JSCoverage for the locale specific js files

Post by Ed » 2009-04-29 2:05 pm

Have you tried using the --encoding option?

Guest

Re: JSCoverage for the locale specific js files

Post by Guest » 2009-05-05 5:09 am

Hi,

I tried it but it is asking for the --encoding=ENCODING, what we need mention in ENCODING part, i mention the path for the locale folder where i had all the locale specifics. It is giving an error as it is not supproting.
C:\Documents and Settings\subbu\Desktop\jscoverage-0.4>jscoverage --encoding=C:\
js\datepicker\locale\ui.datepicker-fr.js C:\radmin C:\jscoverage
jscoverage: encoding C:\js\datepicker\locale\ui
.datepicker-fr.js not supported


Regds,
Subba rao

Ed
Posts: 120
Joined: 2008-10-11 6:52 pm

Re: JSCoverage for the locale specific js files

Post by Ed » 2009-05-05 1:54 pm

You need to specify the character encoding being used by your files. For example, --encoding=UTF-8.

Guest

Re: JSCoverage for the locale specific js files

Post by Guest » 2009-05-06 10:30 am

Hi,

I tried in that way also, but it is giving error when it is converting datepickercontrol.js file, you can download it form http://plugins.jquery.com/project/datepick.

Thanks
Subba Rao

Ed
Posts: 120
Joined: 2008-10-11 6:52 pm

Re: JSCoverage for the locale specific js files

Post by Ed » 2009-05-06 2:08 pm

I couldn't find the file "datepickercontrol.js" you mentioned, but it looks like there are some issues with the package:
  • The file jquery.datepick.min.js contains syntax errors.
  • The package mixes different character encodings (UTF-8, ISO-8859-1). JSCoverage currently cannot handle this.
Since you likely do not want code coverage statistics for 3rd party libraries anyway, the easiest thing to do is just to use the --no-instrument command-line option to skip the directory containing the datepicker package.

Post Reply