Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jasmine's failFast not working in 4.0.1 #288

Open
AbdealiLoKo opened this issue May 8, 2021 · 0 comments
Open

jasmine's failFast not working in 4.0.1 #288

AbdealiLoKo opened this issue May 8, 2021 · 0 comments

Comments

@AbdealiLoKo
Copy link

Seems to be similar to #218
But I have updated jasmine.

I ran karma with LOG_DEBUG - and I can see that the jasmine config is correctly setup.

Click here to see the final config:
08 05 2021 10:26:33.426:DEBUG [karma-server]: Final config Config {
  LOG_DISABLE: 'OFF',
  LOG_ERROR: 'ERROR',
  LOG_WARN: 'WARN',
  LOG_INFO: 'INFO',
  LOG_DEBUG: 'DEBUG',
  frameworks: [ 'jasmine', '@angular-devkit/build-angular' ],
  protocol: 'http:',
  port: 9876,
  listenAddress: '0.0.0.0',
  hostname: 'localhost',
  httpsServerConfig: {},
  basePath: '/home/abdealijk/app/frontend',
  files: [],
  browserConsoleLogOptions: { level: 'debug', format: '%b %T: %m', terminal: true },
  customContextFile: null,
  customDebugFile: null,
  customClientContextFile: null,
  exclude: [ '/home/abdealijk/app/frontend/karma.conf.js' ],
  logLevel: 'DEBUG',
  colors: true,
  autoWatch: false,
  autoWatchBatchDelay: 250,
  restartOnFileChange: false,
  usePolling: true,
  reporters: [ 'spec' ],
  singleRun: true,
  browsers: [ 'ChromeHeadless' ],
  captureTimeout: 60000,
  pingTimeout: 5000,
  proxies: {},
  proxyValidateSSL: true,
  preprocessors: [Object: null prototype] {},
  preprocessor_priority: {},
  urlRoot: '/',
  upstreamProxy: undefined,
  reportSlowerThan: 0,
  loggers: [
    {
      type: 'console',
      layout: { type: 'pattern', pattern: '%[%d{DATE}:%p [%c]: %]%m' }
    }
  ],
  transports: [ 'polling', 'websocket' ],
  forceJSONP: false,
  plugins: [
    {
      'framework:jasmine': [
        'factory',
        [Function: initJasmine] { '$inject': [ 'config.files' ] }
      ],
      'reporter:karma-jasmine': [
        'factory',
        [Function: InjectKarmaJasmineReporter] {
          '$inject': [ 'config.singleRun' ]
        }
      ]
    },
    {
      'reporter:spec': [
        'type',
        [Function: SpecReporter] {
          '$inject': [ 'baseReporterDecorator', 'formatError', 'config' ]
        }
      ]
    },
    {
      'framework:@angular-devkit/build-angular': [
        'factory',
        [Function: init] { '$inject': [ 'config', 'emitter' ] }
      ],
      'reporter:@angular-devkit/build-angular--sourcemap-reporter': [
        'type',
        [Function: sourceMapReporter] {
          '$inject': [ 'baseReporterDecorator', 'config' ]
        }
      ],
      'reporter:@angular-devkit/build-angular--event-reporter': [
        'type',
        [Function: eventReporter] {
          '$inject': [ 'baseReporterDecorator', 'config' ]
        }
      ],
      'middleware:@angular-devkit/build-angular--blocker': [ 'factory', [Function: requestBlocker] ],
      'middleware:@angular-devkit/build-angular--fallback': [ 'factory', [Function: fallbackMiddleware] ]
    },
    {
      'launcher:Chrome': [
        'type',
        [Function: ChromeBrowser] {
          '$inject': [ 'baseBrowserDecorator', 'args' ]
        }
      ],
      'launcher:ChromeHeadless': [
        'type',
        [Function: ChromeHeadlessBrowser] {
          '$inject': [ 'baseBrowserDecorator', 'args' ]
        }
      ],
      'launcher:ChromeCanary': [
        'type',
        [Function: ChromeCanaryBrowser] {
          '$inject': [ 'baseBrowserDecorator', 'args' ]
        }
      ],
      'launcher:ChromeCanaryHeadless': [
        'type',
        [Function: ChromeCanaryHeadlessBrowser] {
          '$inject': [ 'baseBrowserDecorator', 'args' ]
        }
      ],
      'launcher:Chromium': [
        'type',
        [Function: ChromiumBrowser] {
          '$inject': [ 'baseBrowserDecorator', 'args' ]
        }
      ],
      'launcher:ChromiumHeadless': [ 'type', [Function: ChromiumHeadlessBrowser] ],
      'launcher:Dartium': [
        'type',
        [Function: DartiumBrowser] {
          '$inject': [ 'baseBrowserDecorator', 'args' ]
        }
      ],
      test: {
        isJSFlags: [Function: isJSFlags],
        sanitizeJSFlags: [Function: sanitizeJSFlags],
        headlessGetOptions: [Function: headlessGetOptions],
        canaryGetOptions: [Function: canaryGetOptions]
      }
    },
    [Object: null prototype] {
      'launcher:ChromeHeadlessCI': [ 'factory', [Function (anonymous)] ]
    }
  ],
  client: {
    args: [],
    useIframe: true,
    runInParent: false,
    captureConsole: true,
    clearContext: true,
    jasmine: {
      timeoutInterval: 100000,
      failFast: true,
      oneFailurePerSpec: true
    }
  },
  defaultClient: {
    args: [],
    useIframe: true,
    runInParent: false,
    captureConsole: true,
    clearContext: true,
    jasmine: {
      timeoutInterval: 100000,
      failFast: true,
      oneFailurePerSpec: true
    }
  },
  browserDisconnectTimeout: 2000,
  browserDisconnectTolerance: 0,
  browserNoActivityTimeout: 30000,
  processKillTimeout: 2000,
  concurrency: Infinity,
  failOnEmptyTestSuite: true,
  retryLimit: 2,
  detached: false,
  crossOriginAttribute: true,
  browserSocketTimeout: 20000,
  configFile: '/home/abdealijk/app/frontend/karma.conf.js',
  buildWebpack: {
    ...
  },
  specReporter: { maxLogLines: 5, showSpecTiming: true },
  customLaunchers: {
    ChromeHeadlessCI: { base: 'ChromeHeadless', flags: [ '--no-sandbox' ] }
  }
}

Environment:

  • Jasmine core : v3.7.1
  • karma-jasmine: v4.0.1
  • Chrome 90
  • Operating System and version (desktop or mobile): Ubuntu 18.04 on Windows 10 WSL 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant