简体   繁体   English

我的Karma配置跳过了Jasmine单元测试

[英]Jasmine unit test skipped by my Karma configuration

I am trying to run Jasmine test using Karma runner as follows: 我正在尝试使用Karma runner运行Jasmine测试,如下所示:

module.exports = function (config) {
    config.set({

        // base path, that will be used to resolve files and exclude
        basePath: '',

        // frameworks to use
        frameworks: ['jasmine'],

        // list of files / patterns to load in the browser
        files: [
            'lib/angular/1.0.4/angular.js',
            'lib/angular/1.0.4/angular-mocks.js',
            '1820OS_*/**/*.spec.js'
        ],

        // list of files to exclude
        exclude: [
            'lib/angular/1.0.4/angular-scenario.js'
        ],

        // test results reporter to use
        // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
        reporters: ['progress'],

        // web server port
        port: 9876,

        // enable / disable colors in the output (reporters and logs)
        colors: true,

        // level of logging
        // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
        logLevel: config.LOG_DEBUG,

        // enable / disable watching file and executing tests whenever any file changes
        autoWatch: true,

        // Start these browsers, currently available:
        // - Chrome
        // - ChromeCanary
        // - Firefox
        // - Opera (has to be installed with `npm install karma-opera-launcher`)
        // - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
        // - PhantomJS
        // - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
        browsers: ['PhantomJS'],

        // If browser does not capture in given timeout [ms], kill it
        captureTimeout: 60000,

        // Continuous Integration mode
        // if true, it capture browsers, run tests and exit
        singleRun: false
    });
};

Here is the contents of my directory: 这是我的目录的内容:

Structure du dossier
Le num‚ro de s‚rie du volume est 361E-0F50
C:.
|   conf.js
|   logs.txt
|   Readme.txt
|   tree.logs.txt
|   
+---1820OS_09_Code
|   +---01_directive_test_skeleton
|   |       test.js
|   |       
|   +---02_button_directive
|   |       directive.js
|   |       directive.spec.js
|   |       index.html
|   |       test.html
|   |       
|   +---03_pagination_directive
|   |       directive.js
|   |       directive.spec.js
|   |       index.html
|   |       test.html
|   |       
|   +---04_validate-equals_directive
|   |       directive.js
|   |       directive.spec.js
|   |       index.html
|   |       test.html
|   |       
|   +---05_unique-email_directive
|   |       directive.js
|   |       directive.spec.js
|   |       index.html
|   |       mock-Users.js
|   |       test.html
|   |       
|   \---06_jQuery_datepicker_directive
|           directive.js
|           directive.spec.js
|           index.html
|           test.html
|           
+---1820OS_10_Code
|   +---01 - ngLocale and the locale service
|   |       index.html
|   |       locale.js
|   |       
|   +---01_alert_directive
|   |       app.js
|   |       directive.js
|   |       directive.spec.js
|   |       index.html
|   |       test.html
|   |       
|   +---02 - locale and filters
|   |       filters.js
|   |       index_en.html
|   |       index_fr.html
|   |       
|   +---02_if_directive
|   |       directive.js
|   |       directive.spec.js
|   |       index.html
|   |       test.html
|   |       
|   +---03 - translations - i18n filter
|   |       i18nfilter.js
|   |       index.html
|   |       
|   +---03_basic_accordion_directive
|   |   |   accordion.js
|   |   |   accordion.spec.js
|   |   |   app.js
|   |   |   index.html
|   |   |   test.html
|   |   |   
|   |   \---template
|   |       \---accordion
|   |               accordion-group.html
|   |               accordion-group.html.js
|   |               
|   +---04 - customizing format in a date filter
|   |       filterCustomization.js
|   |       index.html
|   |       
|   \---04_field_directive
|       |   directive.js
|       |   directive.spec.js
|       |   index.html
|       |   test.html
|       |   
|       \---template
|               input.html
|               input.html.js
|               select.html
|               select.html.js
|               textarea.html
|               textarea.html.js
|               
+---1820OS_11_Code
|   +---01 - inner working - how digest loop works
|   |       index.html
|   |       internals.js
|   |       
|   +---02 - watchers on scope are fired often
|   |       index.html
|   |       
|   +---03 - tuning cpu - watchers - expensive computations
|   |       expensiveComputation.js
|   |       index.html
|   |       
|   +---04 - tuning cpu - watchers - remove
|   |       index.html
|   |       remove.js
|   |       
|   +---05 - tuning cpu - watchers - hidden watchers
|   |       hiddenWatches.js
|   |       index.html
|   |       
|   +---06 - tuning cpu - loops - timeout and the clock directive
|   |       clock.js
|   |       index.html
|   |       
|   +---07 - tuning memory - deep watches
|   |       deepWatch.js
|   |       index.html
|   |       
|   \---08 - tuning memory - size of a watch
|           index.html
|           
\---lib
    |   test-template.html
    |   
    +---angular
    |   +---1.0.2
    |   |       angular-mocks.js
    |   |       angular-scenario.js
    |   |       angular.js
    |   |       
    |   \---1.0.4
    |           angular-mocks.js
    |           angular-scenario.js
    |           angular.js
    |           
    +---jasmine-1.3.0
    |       jasmine-html.js
    |       jasmine.css
    |       jasmine.js
    |       MIT.LICENSE
    |       
    +---jquery-1.8.3
    |       jquery-1.8.3.js
    |       
    \---jquery-ui-1.9.2
        +---css
        |   \---ui-lightness
        |       |   jquery-ui-1.9.2.css
        |       |   
        |       \---images
        |               ui-bg_diagonals-thick_18_b81900_40x40.png
        |               ui-bg_diagonals-thick_20_666666_40x40.png
        |               ui-bg_flat_10_000000_40x100.png
        |               ui-bg_glass_100_f6f6f6_1x400.png
        |               ui-bg_glass_100_fdf5ce_1x400.png
        |               ui-bg_glass_65_ffffff_1x400.png
        |               ui-bg_gloss-wave_35_f6a828_500x100.png
        |               ui-bg_highlight-soft_100_eeeeee_1x100.png
        |               ui-bg_highlight-soft_75_ffe45c_1x100.png
        |               ui-icons_222222_256x240.png
        |               ui-icons_228ef1_256x240.png
        |               ui-icons_ef8c08_256x240.png
        |               ui-icons_ffd27a_256x240.png
        |               ui-icons_ffffff_256x240.png
        |               
        \---js
                datepicker.js

Here is the output of a karma run .\\conf.js : 这是karma run .\\conf.js的输出karma run .\\conf.js

[36mDEBUG [plugin]: [39mLoading karma-* from C:\Users\julien.martin\AppData\Roaming\npm\node_modules
[36mDEBUG [plugin]: [39mLoading plugin C:\Users\julien.martin\AppData\Roaming\npm\node_modules/karma-chrome-launcher.
[36mDEBUG [plugin]: [39mLoading plugin C:\Users\julien.martin\AppData\Roaming\npm\node_modules/karma-coffee-preprocessor.
[36mDEBUG [plugin]: [39mLoading plugin C:\Users\julien.martin\AppData\Roaming\npm\node_modules/karma-firefox-launcher.
[36mDEBUG [plugin]: [39mLoading plugin C:\Users\julien.martin\AppData\Roaming\npm\node_modules/karma-html2js-preprocessor.
[36mDEBUG [plugin]: [39mLoading plugin C:\Users\julien.martin\AppData\Roaming\npm\node_modules/karma-jasmine.
[36mDEBUG [plugin]: [39mLoading plugin C:\Users\julien.martin\AppData\Roaming\npm\node_modules/karma-phantomjs-launcher.
[36mDEBUG [plugin]: [39mLoading plugin C:\Users\julien.martin\AppData\Roaming\npm\node_modules/karma-requirejs.
[36mDEBUG [plugin]: [39mLoading plugin C:\Users\julien.martin\AppData\Roaming\npm\node_modules/karma-script-launcher.
[32mINFO [karma]: [39mKarma v0.10.9 server started at http://localhost:9876/
[32mINFO [launcher]: [39mStarting browser PhantomJS
[36mDEBUG [launcher]: [39mCreating temp dir at C:\Users\JULIEN~1.MAR\AppData\Local\Temp\karma-54411459
[36mDEBUG [launcher]: [39mC:\Users\julien.martin\AppData\Roaming\npm\node_modules\karma-phantomjs-launcher\node_modules\phantomjs\lib\phantom\phantomjs.exe C:\Users\JULIEN~1.MAR\AppData\Local\Temp\karma-54411459/capture.js
[36mDEBUG [watcher]: [39mResolved files:
    C:/Users/julien.martin/AppData/Roaming/npm/node_modules/karma-jasmine/lib/jasmine.js
    C:/Users/julien.martin/AppData/Roaming/npm/node_modules/karma-jasmine/lib/adapter.js
    C:/system/misc/1820OS_CodeBundle/lib/angular/1.0.4/angular.js
    C:/system/misc/1820OS_CodeBundle/lib/angular/1.0.4/angular-mocks.js
    C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/06 - testing - simple Jasmine test/helloWorld.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/07 - testing - services - a notificationsArchive test/archive.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/08 - testing - a controller test/admin-projects.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/09 - testing - timeout test/timeout.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/10 - testing - karma tips and tricks/tips.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_03_Code/02 - jsonp/jsonp.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_03_Code/04- unit testing with httpBackend mock/test-with-http-backend.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_03_Code/05 - promise api/promises.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_04_Code/08 -filters - array filters full example/arrayFilters.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_04_Code/09 - filters - accessiong from JavaScript/trimFilter.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/authorization.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/interceptor.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/login/login-form.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/login/login-toolbar.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/retry-queue.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/security.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/02_button_directive/directive.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/03_pagination_directive/directive.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/04_validate-equals_directive/directive.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/05_unique-email_directive/directive.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/06_jQuery_datepicker_directive/directive.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_10_Code/01_alert_directive/directive.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_10_Code/02_if_directive/directive.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_10_Code/03_basic_accordion_directive/accordion.spec.js
    C:/system/misc/1820OS_CodeBundle/1820OS_10_Code/04_field_directive/directive.spec.js
[36mDEBUG [watcher]: [39mWatching "C:/system/misc/1820OS_CodeBundle/lib/angular/1.0.4/angular.js"
[36mDEBUG [watcher]: [39mWatching "C:/system/misc/1820OS_CodeBundle/lib/angular/1.0.4/angular-mocks.js"
[36mDEBUG [watcher]: [39mWatching "C:/system/misc/1820OS_CodeBundle"
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/lib/angular/1.0.4/angular-mocks.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/07 - testing - services - a notificationsArchive test/archive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/06 - testing - simple Jasmine test/helloWorld.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/10 - testing - karma tips and tricks/tips.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/09 - testing - timeout test/timeout.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/08 - testing - a controller test/admin-projects.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_03_Code/05 - promise api/promises.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_04_Code/08 -filters - array filters full example/arrayFilters.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_04_Code/09 - filters - accessiong from JavaScript/trimFilter.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_03_Code/04- unit testing with httpBackend mock/test-with-http-backend.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_03_Code/02 - jsonp/jsonp.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/02_button_directive/directive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/04_validate-equals_directive/directive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/03_pagination_directive/directive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/05_unique-email_directive/directive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/06_jQuery_datepicker_directive/directive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_10_Code/01_alert_directive/directive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_10_Code/03_basic_accordion_directive/accordion.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_10_Code/04_field_directive/directive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_10_Code/02_if_directive/directive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/06 - testing - simple Jasmine test/helloWorld.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/08 - testing - a controller test/admin-projects.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/09 - testing - timeout test/timeout.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/10 - testing - karma tips and tricks/tips.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/07 - testing - services - a notificationsArchive test/archive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_03_Code/02 - jsonp/jsonp.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_03_Code/04- unit testing with httpBackend mock/test-with-http-backend.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_03_Code/05 - promise api/promises.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_04_Code/08 -filters - array filters full example/arrayFilters.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_04_Code/09 - filters - accessiong from JavaScript/trimFilter.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_10_Code/01_alert_directive/directive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_10_Code/03_basic_accordion_directive/accordion.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_10_Code/04_field_directive/directive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/03_pagination_directive/directive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/04_validate-equals_directive/directive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/06_jQuery_datepicker_directive/directive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/05_unique-email_directive/directive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/02_button_directive/directive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_10_Code/02_if_directive/directive.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/lib/angular/1.0.4/angular-mocks.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/lib/angular/1.0.4/angular.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/lib/angular/1.0.4/angular-mocks.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/lib/angular/1.0.4/angular.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/authorization.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/interceptor.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/retry-queue.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/security.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/interceptor.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/security.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/retry-queue.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/authorization.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/login/login-form.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/login/login-toolbar.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/login/login-form.spec.js" ignored. Already in the list.
[36mDEBUG [watcher]: [39mAdd file "C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/login/login-toolbar.spec.js" ignored. Already in the list.
[36mDEBUG [web-server]: [39mserving: C:\Users\julien.martin\AppData\Roaming\npm\node_modules\karma\static/client.html
[36mDEBUG [web-server]: [39mserving: C:\Users\julien.martin\AppData\Roaming\npm\node_modules\karma\static/karma.js
[36mDEBUG [karma]: [39mA browser has connected on socket 1vT3Y1P01r8VDgGsK7wx
[32mINFO [PhantomJS 1.9.7 (Windows 7)]: [39mConnected on socket 1vT3Y1P01r8VDgGsK7wx
[36mDEBUG [karma]: [39mAll browsers are ready, executing
[36mDEBUG [web-server]: [39mserving: C:\Users\julien.martin\AppData\Roaming\npm\node_modules\karma\static/context.html
[36mDEBUG [web-server]: [39mserving: C:/Users/julien.martin/AppData/Roaming/npm/node_modules/karma-jasmine/lib/jasmine.js
[36mDEBUG [web-server]: [39mserving: C:/Users/julien.martin/AppData/Roaming/npm/node_modules/karma-jasmine/lib/adapter.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/lib/angular/1.0.4/angular.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/lib/angular/1.0.4/angular-mocks.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/06 - testing - simple Jasmine test/helloWorld.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/07 - testing - services - a notificationsArchive test/archive.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/08 - testing - a controller test/admin-projects.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/09 - testing - timeout test/timeout.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_02_Code/10 - testing - karma tips and tricks/tips.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_03_Code/02 - jsonp/jsonp.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_03_Code/04- unit testing with httpBackend mock/test-with-http-backend.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_03_Code/05 - promise api/promises.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_04_Code/08 -filters - array filters full example/arrayFilters.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_04_Code/09 - filters - accessiong from JavaScript/trimFilter.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/authorization.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/interceptor.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/login/login-form.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/login/login-toolbar.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/retry-queue.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_07_Code/05_security_module/tests/security/security.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/02_button_directive/directive.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/03_pagination_directive/directive.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/04_validate-equals_directive/directive.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/05_unique-email_directive/directive.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_09_Code/06_jQuery_datepicker_directive/directive.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_10_Code/01_alert_directive/directive.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_10_Code/02_if_directive/directive.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_10_Code/03_basic_accordion_directive/accordion.spec.js
[36mDEBUG [web-server]: [39mserving: C:/system/misc/1820OS_CodeBundle/1820OS_10_Code/04_field_directive/directive.spec.js
PhantomJS 1.9.7 (Windows 7): Executed 1 of 132 (skipped 4)[32m SUCCESS[39m (0 secs / 0.001 secs)
[1A[2KPhantomJS 1.9.7 (Windows 7): Executed 1 of 132 (skipped 131)[32m SUCCESS[39m (0.101 secs / 0.001 secs)

What am I getting wrong with my config? 我的配置出了什么问题? All tests are skipped ... 所有测试都被跳过 ......

I bet you have a iit somewhere in your test specs. 我打赌你的测试规格中有一个iit

When using iit or ddescribe , you set focus only on this test/suite. 使用iitddescribe ,只将焦点设置在此测试/套件上。 This feature has been provided by Karma for a long time ( v0.04 ) but not yet implemented in Jasmine. 此功能由Karma提供了很长时间( v0.04 ),但尚未在Jasmine中实现。 There was a long debate about that: https://github.com/pivotal/jasmine/pull/181 . 关于这一点的争论很长: https//github.com/pivotal/jasmine/pull/181

I had the same symptom which turned out to be caused by a misplaced paren on an 'it'. 我有同样的症状,结果是由于'它'上错误的paren引起的。 Mine looked like: 我看起来像:

it('should not have a paren immediately after this string'), function() {

}

Instead of how it should have looked: 而不是它应该如何看起来:

it('should have the paren after the function block...', function() {

})

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从angularjs的业力茉莉花中的单元测试无法得到JSON响应? - Not getting json response from unit test in karma jasmine in angularjs? 为什么我的茉莉花单元测试不等待“完成”? - Why is my jasmine unit test not waiting for 'done'? 离子2:用茉莉花和业力错误'ng test'测试 - Ionic 2 : Test with jasmine and karma error 'ng test' AngularJS:Karma + Jasmine进行_real_后端测试 - AngularJS: Karma + Jasmine to test with _real_ backend 如何用jasmine和browserify进行单元测试? - How to unit test with jasmine and browserify? 使用茉莉花,业力的Node.js单元测试中的错误:未定义require - Error in nodejs unit testing using jasmine, karma : require is not defined 为什么“导出”没有在我的业力节点单元测试中定义,以及什么阻止了requirejs按预期工作 - Why is “exports” not defined in my karma Node unit test and what is preventing requirejs from working as expected Angular.js + nw.js + webpack + karma + jasmine如何测试 - Angular.js+nw.js+webpack+karma+jasmine how to test 从JS测试文件中使用Karma和Jasmine测试编译的TypeScript - Testing compiled TypeScript with Karma and Jasmine from a JS test file 如何使用业力将茉莉花测试结果/输出报告到文本文件中 - How to report jasmine test results/output into a text file using karma
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM