generator-gulp-angular icon indicating copy to clipboard operation
generator-gulp-angular copied to clipboard

How to - start uni test with decribe?

Open michalmw opened this issue 8 years ago • 0 comments

Hello,

i write small test 'calculator'. Add name 'calculator.spec.js' but when i start 'gulp server' or 'gulp test' testing not include to test app?

In console i need see 'calculator', but console don't show this alert. Why?

My code:

(function() { 'use strict'; describe('calculator', function() { it('1 + 1 should equal 2', function() { expect(1 + 1).toBe(1); }); }); });

When i write in console gulp test

`all files 45.14 kB [19:10:12] Finished 'scripts' after 1.79 s [19:10:12] Starting 'test'... 30 05 2016 19:10:12.692:WARN [watcher]: Pattern "/Users/c9/Documents/EE/Ui/mdc-ui/view/src/*/.mock.js" does not match any file. 30 05 2016 19:10:32.762:WARN [PhantomJS 1.9.8 (Mac OS X 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.

[19:10:32] 'test' errored after 21 s [19:10:32] Error: Failed 1 tests. at /Users/c9/Documents/EE/Ui/mdc-ui/view/gulp/unit-tests.js:41:22 at removeAllListeners (/Users/c9/Documents/EE/Ui/mdc-ui/view/node_modules/karma/lib/server.js:336:7) at Server. (/Users/c9/Documents/EE/Ui/mdc-ui/view/node_modules/karma/lib/server.js:347:9) at Server.g (events.js:260:16) at emitNone (events.js:72:20) at Server.emit (events.js:166:7) at emitCloseNT (net.js:1519:8) at nextTickCallbackWith1Arg (node.js:431:9) at process._tickCallback (node.js:353:17)`

michalmw avatar May 30 '16 17:05 michalmw