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: I was in a similar position. With Chutzpah 3.2.1 installed locally (and being used on the visualstudio.com build server). The tests ran fine locally (using Visual Studio 2013) but when running on the build server the originally reported following errors presented (eg Error: TypeError: 'undefined' is not an object (evaluating 'angular.mock = {}') ) I included a chutzpah.json file in the root of my project: ``` { "Tests": [ { "Path": "test", "Include": "*.js" }, ] } ``` This seems to have sorted the matter. Happy to supply a "this works for me zip" if that's helpful.

Viewing all articles
Browse latest Browse all 1864

Trending Articles