Quantcast
Channel: Chutzpah - A JavaScript Test Runner
Viewing all articles
Browse latest Browse all 1864

Commented Unassigned: Strange Js test error on build server [230]

$
0
0
When i run my js tests on the TFS build server. They all pass ok but i get the errors below every time, even if i remove all my js tests. Any help would be much appreciated.

Error: TypeError: 'undefined' is not an object (evaluating 'angular.mock = {}')
in file:///D:/Builds/4/Web/_PublishedWebsites/Web/bin/angular-mocks.js (line 17)
in file:///D:/Builds/4/Web/_PublishedWebsites/Web/bin/angular-mocks.js (line 2136)
While Running:D:\Builds\4\WebTech\CRpt\Binaries\Debug\Web\_PublishedWebsites\Web\bin\angular-mocks.js

Error: TypeError: 'undefined' is not an object (evaluating 'angular.mock = {}')
in file:///D:/Builds/4/Web/_PublishedWebsites/Web/Scripts/angular-mocks.js (line 17)
in file:///D:/Builds/4/Web/_PublishedWebsites/Web/Scripts/angular-mocks.js (line 2136)
While Running:D:\Builds\4\WebTech\CRpt\Binaries\Debug\Web\_PublishedWebsites\Web\Scripts\angular-mocks.js

Error: TypeError: 'undefined' is not an object (evaluating 'angular.mock = {}')
in file:///D:/Builds/4/Web/Scripts/angular-mocks.js (line 17)
in file:///D:/Builds/4/Web/Scripts/angular-mocks.js (line 2136)
While Running:D:\Builds\4\WebTech\CRpt\Binaries\Debug\Web\Scripts\angular-mocks.js

Error: TypeError: 'undefined' is not an object (evaluating 'angular.mock = {}')
in file:///D:/Builds/4/Web.Tests/Scripts/angular-mocks.js (line 17)
in file:///D:/Builds/4/Web.Tests/Scripts/angular-mocks.js (line 2136)
While Running:D:\Builds\4\WebTech\CRpt\Binaries\Debug\Web.Tests\Scripts\angular-mocks.js


Error: TypeError: 'undefined' is not a constructor (evaluating 'new jasmine.HtmlReporter()')
in file:///D:/Builds/4/Web.Tests/Scripts/_Chutzpah.e898bcd2ed62ba32b4728f26d567c21c.test.html (line 23)
in file:///D:/Builds/4/Web.Tests/Scripts/_Chutzpah.e898bcd2ed62ba32b4728f26d567c21c.test.html (line 70)
While Running:D:\Builds\4\WebTech\CRpt\Binaries\Debug\Web.Tests\Scripts\jasmine.js

Error: Timeout occured when executing test file
While Running:D:\Builds\4\WebTech\CRpt\Binaries\Debug\Web.Tests\Scripts\jasmine.js

An error occurred when opening a file "D:\Builds\4\WebTech\CRpt\Binaries\Debug\Web.Tests\phantomjs.exe": Assembly "phantomjs.exe" is not a valid .NET assembly and will be skipped for analysis.
Comments: Thanks, that has got me a little futher. I have added a Chutzpah.json file to the root of my test project Chutzpah.json { "References": [ { "Path": "../Web/Scripts", "Include": "*.js"}, { "Path": "../Web/apps/fileupload", "Include": "*.js"}, ], "Tests": [ { "Path": "/app", "Include": "*.js"} ] } When i run the tests i now get the errors below. I opened a test with right click -> open in browser and all the required javascript files are being included. ReferenceError: Can't find variable: module in http://localhost:25384/Tests.js (line 7) ReferenceError: Can't find variable: module at config.js: line 7 at jasmine.js: line 1035 at jasmine.js: line 2053 at jasmine.js: line 2006 at jasmine.js: line 2335 at jasmine.js: line 2053 at jasmine.js:2043 TypeError: 'undefined' is not an object (evaluating 'httpBackend.expectGET') in http://localhost:25384/Tests.js (line 32) TypeError: 'undefined' is not an object (evaluating 'httpBackend.expectGET') at config.js: line 32 at jasmine.js: line 1035 at jasmine.js: line 2053 at jasmine.js: line 2006 at jasmine.js: line 2335 at jasmine.js: line 2053 at jasmine.js:2043 TypeError: 'undefined' is not an object (evaluating 'httpBackend.flush') in http://localhost:25384/Tests.js (line 20) TypeError: 'undefined' is not an object (evaluating 'httpBackend.flush') at config.js: line 20 at jasmine.js: line 1035 at jasmine.js: line 2053 at jasmine.js: line 2006 at jasmine.js: line 2335 at jasmine.js: line 2053 at jasmine.js:2043

Viewing all articles
Browse latest Browse all 1864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>