Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4274396
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:50:29+00:00 2026-05-21T07:50:29+00:00

I am working on a project where the Javascript is becoming more complex, and

  • 0

I am working on a project where the Javascript is becoming more complex, and needs to be tested as part of our automated build.

Now I have got a project structure like 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 my Nant build I kick off Java using then pass it the js-test-driver.js file, with the arguments to use the config file provided. Now I noticed that when I was running it that its config file paths seem to be relative to the js-test-driver directory, not the project root directory.

I didnt think this was an issue, and just put the following in my config file:

server: http://localhost:9876

load:
  - ../../src/code/projectname.web/assets/javascript/*.js
  - ../../src/tests/projectname.javascript/*.js

Now if I run my task in Nant, it starts up the test driver (in Firefox currently) fine but just fails, saying that it cannot find any tests to run, but the thing which I find confusing is that it lists the test directory as:

tests/../../src/tests/projectname.javascript/*.js

And I cannot for the life of me figure out why it is putting this “tests/” before everything… If i put ../../../ in to negate this seemingly hardcoded tests dir, it tells me that the path is not in a valid pattern.

Anyone else had anything similar or know where I am going wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T07:50:29+00:00Added an answer on May 21, 2026 at 7:50 am

    The “tests” folder is always prepended, it’s just where jsTestDriver serves its files from. To quote Cory Smith from the jsTestDriver team:

    All resources associated with the test
    run are served off /test. All static
    runner resources are served off
    /static

    JsTestDriver-1.3.2 has problems with relative paths. The issue has already been discussed and filed as an issue.

    Did you try setting the basepath in js-test-driver.conf. It’s fairly new and not yet documented, not sure how it’s affected by the relative path problems.

    basepath: /root/src
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.