javascript - jsTestDriver + Nant = test directory issue -
i working on project javascript becoming more complex, , needs tested part of our automated build.
now have got project structure shown below:
- root |- build.xml |- tools |- js-test-driver |- js-test-driver.js |- js-test-driver.conf |- src |- code |- projectname.web |- assets |- javascript |- my-javascript-files.js |- tests |- projectname.javascript |- my-javascript-tests.js in nant build kick off java using pass js-test-driver.js file, arguments use config file provided. noticed when running config file paths seem relative js-test-driver directory, not project root directory.
i didnt think issue, , put following in config file:
server: http://localhost:9876 load: - ../../src/code/projectname.web/assets/javascript/*.js - ../../src/tests/projectname.javascript/*.js now if run task in nant, starts test driver (in firefox currently) fine fails, saying cannot find tests run, thing find confusing lists test directory as:
tests/../../src/tests/projectname.javascript/*.js
and cannot life of me figure out why putting "tests/" before everything... if put ../../../ in negate seemingly hardcoded tests dir, tells me path not in valid pattern.
anyone else had similar or know going wrong?
the "tests" folder prepended, it's jstestdriver serves files from. quote cory smith jstestdriver team:
all resources associated test run served off /test. static runner resources served off /static
jstestdriver-1.3.2 has problems relative paths. issue has been discussed , filed issue.
did try setting basepath in js-test-driver.conf. it's new , not yet documented, not sure how it's affected relative path problems.
basepath: /root/src
Comments
Post a Comment