簡體   English   中英

伊斯坦布爾不運行所有茉莉花規格嗎?

[英]Istanbul not running all jasmine specs?

我有24個測試。

jasmine-node spec
........................
Finished in 2.061 seconds
24 tests, 54 assertions, 0 failures, 0 skipped

當我運行istanbul時它似乎僅運行14個測試。

istanbul cover jasmine-node spec
..............
=====================================================
Writing coverage object [/Users/jared/git/redacted/redacted/coverage/coverage.json]
etc ..

為什么伊斯坦布爾不運行我的所有測試?

組態

規格/支持/ jasmine.json

{
  "spec_dir": "spec",
  "spec_files": ["**/*_spec.js"],
  "helpers": ["helpers/**/*.js"]
}

.istanbul.yml

verbose: false
instrumentation:
  root: .
  extensions:
    - .js
  default-excludes: true
  excludes: [
    "bootstrap/js/bootstrap*.js",
    "bootstrap/js/jquery*.js",
    "bootstrap/js/lz-string-1.3.3-min.js",
    "bootstrap/js/moment-with-langs.min.js",
    "bootstrap/js/Sha256.js",
    "bootstrap/js/spin*.js",
    "bootstrap/js/underscore*.js",
    "env-0.10.20-prebuilt/**",
    "node_modules/**",
    "spec/**"
  ]
  embed-source: false
  variable: __coverage__
  compact: true
  preserve-comments: false
  complete-copy: false
  save-baseline: false
  baseline-file: ./coverage/coverage-baseline.json
  include-all-sources: true
  include-pid: false
reporting:
  print: summary
  reports:
    - lcov
  dir: ./coverage
  watermarks:
    statements: [50, 80]
    lines: [50, 80]
    functions: [50, 80]
    branches: [50, 80]
  report-config:
    clover: {file: clover.xml}
    cobertura: {file: cobertura-coverage.xml}
    json: {file: coverage-final.json}
    json-summary: {file: coverage-summary.json}
    lcovonly: {file: lcov.info}
    teamcity: {file: null, blockName: Code Coverage Summary}
    text: {file: null, maxCols: 0}
    text-lcov: {file: lcov.info}
    text-summary: {file: null}
hooks:
  hook-run-in-context: false
  post-require-hook: null
  handle-sigint: false
check:
  global:
    statements: 0
    lines: 0
    branches: 0
    functions: 0
    excludes: []
  each:
    statements: 0
    lines: 0
    branches: 0
    functions: 0
    excludes: []

規格目錄:

tree spec
spec
├── api
│   └── utils_spec.js
├── emailer
│   ├── emailer_spec.js
│   ├── mail_redacted1_spec.js
│   └── mail_redacted2_spec.js
├── fixtures
│   └── emailer
│       ├── redacted1
│       │   ├── in.html
│       │   └── out.html
│       └── redacted2
│           ├── in.html
│           └── out.html
├── redacted3
│   └── index_spec.js
├── lzstring
│   └── lzstring_spec.js
├── repository
│   └── users_spec.js
├── support
│   ├── factories
│   │   └── users.js
│   └── jasmine.json
└── utils
    └── index_spec.js

12 directories, 14 files

通過改變

istanbul cover jasmine-node spec

istanbul cover node_modules/.bin/jasmine

我不再能夠重現該問題。

當我寫問題時我沒有意識到,但是我能夠用

jasmine-node spec

單獨,這意味着此問題與伊斯坦布爾無關。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM