HaroonBadsha / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

Coverage plugins does not work when loading CSS #143

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load CSS via config file
2. Enable coverage
3. Run tests

What is the expected output? What do you see instead?
line 0:0 no viable alternative at character ''
line 0:0 no viable alternative at character ''

What version of the product are you using? On what operating system?
1.2.2 on OSX

The coverage module does not work if you include any CSS files. This could also 
be fixed with an extra exclude list for the coverage module itself. Which would 
help to not generate statistics for additional Libraries.

Original issue reported on code.google.com by tobias.e...@gmail.com on 4 Oct 2010 at 9:36

GoogleCodeExporter commented 8 years ago
Please include sample config.

Original comment by corbinrs...@gmail.com on 4 Oct 2010 at 4:44

GoogleCodeExporter commented 8 years ago
It didn't work with every CSS file I tried so far:

server: http://localhost:8888
plugin:
  - name: "coverage"
    jar: "plugins/coverage.jar"
    module: "com.google.jstestdriver.coverage.CoverageModule"

load:
  - ../src/Application/bundle/Resources/public/vendor/yui/cssreset/reset.css

line 0:0 no viable alternative at character ''
line 0:0 no viable alternative at character ''
line 0:0 no viable alternative at character ''
line 12:4 no viable alternative at input '{'

Original comment by tobias.e...@gmail.com on 12 Oct 2010 at 2:13

GoogleCodeExporter commented 8 years ago
the same problem... I've attached files: first with my configuration settings 
and second with stacktrace 

Original comment by IgorNes...@gmail.com on 15 Feb 2012 at 1:37

Attachments:

GoogleCodeExporter commented 8 years ago
Not sure, but shouldn't CSS file be provided using the serve: keyword:

server: http://localhost:8888
plugin:
  - name: "coverage"
    jar: "plugins/coverage.jar"
    module: "com.google.jstestdriver.coverage.CoverageModule"

serve:
  - ../src/Application/bundle/Resources/public/vendor/yui/cssreset/reset.css

Original comment by IvDo...@gmail.com on 13 Nov 2012 at 1:44