fhigit / js-test-driver

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

Enable reading files within jars #438

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As a Javascript developer, I would like to run javascript unit tests while 
working with artifacts (jars), where the javascript code and unit tests are 
stored, for example when building with gradle. 

Original issue reported on code.google.com by levon...@gmail.com on 19 Jul 2013 at 9:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have patched the JsTestDriver source to implement this story. With the 
patches, it can detect filenames in the config file of the form

  jar:file:path_to_jar!path/within/jar/file.js

and read them as a resource instead of from the file system. It does not 
support globing currently, but a script can be used to find all the resources 
(e.g. using Reflections) and generate a conf file.

The patch can be seen in my clone:

  https://code.google.com/r/levonsa-js-test-driver/source/list?name=readfromjars

Is this something you'd like to pull into JsTestDriver?

Original comment by levon...@gmail.com on 19 Jul 2013 at 9:16