carlorizzante / js-test-driver

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

jstd tries to serve folder "components.js" as a file #441

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create sample project (like 
http://code.google.com/p/js-test-driver/source/browse/#svn/samples/hello-world).
2. Create subfolder ending in ".js", e.g. "components.js"
3. Update jstd configuration to serve all js files (add `  - "*.js"` option to 
`serve:` section).
4. (The rest of setup is the same as for sample project described in Wiki). Run 
test.

What is the expected output?
Tests should run.

What do you see instead?

Can't run tests. Details:
java.lang.RuntimeException: Impossible to read file: 
C:\project\lib\components.js
    at com.google.jstestdriver.SimpleFileReader.readFile(SimpleFileReader.java:50)
    at com.google.jstestdriver.FileInfo.loadFile(FileInfo.java:203)
    at com.google.jstestdriver.ProcessingFileLoader.loadFiles(ProcessingFileLoader.java:61)
    at com.google.jstestdriver.model.JstdTestCaseDelta.loadFiles(JstdTestCaseDelta.java:59)
    at com.google.jstestdriver.FileUploader.uploadToServer(FileUploader.java:218)
    at com.google.jstestdriver.action.UploadAction.run(UploadAction.java:39)
    at com.google.jstestdriver.ActionRunner.runActions(ActionRunner.java:81)
    at com.google.jstestdriver.embedded.JsTestDriverImpl.runConfigurationWithFlags(JsTestDriverImpl.java:342)
    at com.google.jstestdriver.embedded.JsTestDriverImpl.runConfiguration(JsTestDriverImpl.java:233)
    at com.google.jstestdriver.idea.TestRunner.runTests(TestRunner.java:185)
    at com.google.jstestdriver.idea.TestRunner.executeTests(TestRunner.java:104)
    at com.google.jstestdriver.idea.TestRunner.executeAll(TestRunner.java:90)
    at com.google.jstestdriver.idea.TestRunner.main(TestRunner.java:283)
Caused by: java.io.FileNotFoundException: C:\project\lib\components.js (Access 
is denied)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at java.io.FileInputStream.<init>(FileInputStream.java:97)
    at com.google.jstestdriver.SimpleFileReader.readFile(SimpleFileReader.java:34)
    ... 12 more

What version of the product are you using? On what operating system?
JsTestDriver bundled with WebStorm (JsTestDriver-1.3.5), Windows 7 SP1 64-bit.

Original issue reported on code.google.com by vkhomyackov on 2 Aug 2013 at 12:12