mmanela / chutzpah

Chutzpah is an open source JavaScript test runner which enables you to run unit tests using QUnit, Jasmine, Mocha and TypeScript.
http://mmanela.github.io/chutzpah/
Apache License 2.0
550 stars 142 forks source link

chutzpah.json is not detecting/loading the reference files #740

Closed Gopi-Nani closed 5 years ago

Gopi-Nani commented 5 years ago

When I use two different chutzpah.json files (one is at root level and another is at lower folder level) for a same project it will not loading the references when I ran the tests in the lower level folder.


The below is the project folder structure I have:

In "Source1" I have my Source files and as well as tests files like below.

The below is the Chutzpah.json (at root level) used for the files in the "Source1" folder. { "Framework": "jasmine", "RootReferencePathMode": "SettingsFileDirectory", "References": [ { "Path": "Scripts/Source1/source1sample.js" } ], "Tests": [ { "Includes": [ "source1sample.test.js" ] } ], "CodeCoverageIncludes": [ "*\\Scripts\\Source1\\*" ], "CodeCoverageExcludes": [ "*.test.js" ] }

In "Source2" I have my Source files and as well as tests files along with the other 'Chutzpah.json' file like below.

If I ran the test files in the lower folder level it will through the error, but when I added the references of these in the outside Chutzpah.json that is at the root of the project it is working fine.

Gopi-Nani commented 5 years ago

It is working now after I made changes in reference path (Changed that as relative path)

Thanks. :relaxed: