Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Vijay Pemmaraju
    @vijaypemmaraju
    hey guys, we started seeing a bunch of these out of memory errors in our stryker run
    we added a bunch of tests in the past couple days and our stryker run went from about 4 minutes to 9-10, and I've been trying to understand why
    I've tried running stryker with --max-old-space-size=8192, but it doesn't seem to do anything
    image.png
    we're on all the latest dependencies for stryker
    and this is a react project (not CRA) running with jest
    our styrker conf:
    module.exports = (config) => {
      config.set({
        files: [
          'babel.config.js',
          'src/**/*.*',
        ],
        fileLogLevel: 'info',
        mutate: [
          'src/**/sagas/*.js',
          '!src/**/sagas/*.test.js',
        ],
        mutator: {
          name: 'javascript',
          plugins: [
            'asyncGenerators',
            'classProperties',
            'jsx',
            'objectRestSpread',
            'optionalChaining',
            ['decorators', { decoratorsBeforeExport: true }],
          ],
          sourceType: 'module',
        },
        timeoutMS: 60000,
        testRunner: 'jest',
        reporters: [
          'progress',
          'clear-text',
          ...(process.env.NODE_ENV === 'development' ? ['html'] : []),
        ],
        coverageAnalysis: 'off',
        thresholds: {
          high: 80,
          low: 60,
          break: null, // change this to a number to fail the build
        },
        jest: {
          config: require(`${__dirname}/jest.config.js`), // eslint-disable-line
          findRelatedTests: true,
        },
      });
    };
    Marnix van den Bent
    @rabomarnix
    Hi all, after updating to 2.4.0, I notice way more timeouts in comparison to version 1.3. Is anyone else experiencing timeouts? How to fix it?
    Marnix van den Bent
    @rabomarnix
    Or is timeout good?
    Marnix van den Bent
    @rabomarnix
    As far as I can see in the mutated code, the timeouts seem logical since i'm working with callback functions and a few blocks of code are completely removed by the mutator - so the callback function isn't called and promise isn't solved
    ManuSponton
    @ManuSponton

    Hi!

    I'm trying run Stryker in Windows following the instructions of quickstart but not working :(
    I researched some things on the internet but found nothing

    follow the error stack:

    My stryker.config.js
    module.exports = function(config) {
    config.set({
    mutate: ["src//*.ts?(x)", "!src//*@(.test|.spec|Spec).ts?(x)"],
    mutator: "typescript",
    testRunner: "jest",
    reporters: ["progress", "clear-text", "html"],
    coverageAnalysis: "off",
    jest: {
    config: require('./jest.config.js')
    },
    tsconfigFile: 'tsconfig.json'
    });
    };
    alexkrylyk
    @alexkrylyk
    Hi all
    I have a question
    Does stryker support running only specified tests, but not all of them?
    David Reynolds
    @david-rey
    Hi. I have a question about stryker-dotnet 0.15.0.
    I have some code that is covered by unit tests. When I run stryker it fails and reports that there are 28 mutants that are not reached by any test and will survive. When I turn coverage analysis off it tests the mutations, they are all killed and the run passes.
    Also, if I change the code to match one of the mutations and run the tests I get failed tests.
    None of the code is excluded from code coverage
    Maxime Lafarie
    @maximelafarie

    Hi all! I'm trying to run Stryker in an Angular 8 project. When I run stryker run, I've got the following error message:

    14:49:00 (339) TRACE ChildProcessProxy 23 01 2020 14:49:00.773:INFO [karma-server]: Karma v4.2.0 server started at http://0.0.0.0:9876/
    
    14:49:00 (339) TRACE ChildProcessProxy 23 01 2020 14:49:00.780:INFO [launcher]: Launching browsers selenium_chrome with concurrency unlimited
    
    14:49:00 (339) TRACE ChildProcessProxy 23 01 2020 14:49:00.795:INFO [launcher]: Starting browser selenium for chrome
    
    14:49:00 (339) TRACE ChildProcessProxy 23 01 2020 14:49:00.797:INFO [webdriverio]: Selenium browser started at http://selenium:4444/wd/hub
    
    14:49:02 (350) DEBUG ChildProcessProxyWorker UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: getaddrinfo ENOTFOUND selenium selenium:4444
    14:49:02 (339) TRACE ChildProcessProxy 23 01 2020 14:49:02.219:ERROR [karma-server]: UnhandledRejection

    here's my stryker.config.js file content:

    module.exports = function (config) {
        config.set({
          mutate: [
            'src/**/*.ts',
            '!src/**/*.spec.ts',
            '!src/test.ts',
            '!src/environments/*.ts'
          ],
          files: [
            'src/**/*.ts',
            './karma.conf.ci.js'
          ],
          mutator: 'typescript',
          testRunner: 'karma',
          karma: {
            configFile: './karma.conf.ci.js',
            projectType: 'angular-cli'
          },
          logLevel: 'trace',
          timeout: 10000,
          reporters: ['progress', 'clear-text', 'html'],
          maxConcurrentTestRunners: 2, // Recommended to not use all cores when running stryker with angular.
          coverageAnalysis: 'off'
        });
      };

    Do you guys have an idea about why Stryker can't wait for selenium browser? :)

    Max Harris
    @maxharris9
    is anyone here interested in using stryker with tape?
    Jest is incredibly invasive. it imposes all kinds of opinions and defaults that make it unusable for me
    Deven Phillips
    @InfoSec812
    Hi all... Has anyone here recently tried to use Stryker with Quasar (quasar.dev), Vue, and Jest? I have perfectly functional tests with Jest on my Vue project using Quasar, but when running Stryker I get:
    10:32:15 (29827) INFO ConfigReader Using stryker.conf.js in the current working directory.
    10:32:15 (29827) WARN InputFileResolver Globbing expression "src/**/*.ts" did not result in any files.
    10:32:15 (29827) INFO InputFileResolver Found 13 of 63 file(s) to be mutated.
    10:32:15 (29827) INFO InitialTestExecutor Starting initial test run. This may take a while.
    10:32:23 (29827) ERROR InitialTestExecutor One or more tests resulted in an error:
              ● Test suite failed to run
    
        TypeError: (0 , _typeof2.default) is not a function
    
          at Object.<anonymous> (../../node_modules/core-js/modules/_object-gopn-ext.js:6:19)
          at Object.<anonymous> (../../node_modules/core-js/modules/es6.symbol.js:25:15)
          at Object.<anonymous> (../../node_modules/core-js/library/modules/_object-gops.js:3:1)
          at Object.<anonymous> (../../node_modules/core-js/library/modules/_enum-keys.js:3:12)
          at Object.<anonymous> (../../node_modules/core-js/library/modules/es6.symbol.js:16:16)
          at Object.<anonymous> (../../node_modules/core-js/library/fn/symbol/index.js:1:1)
          at Object.<anonymous> (../../node_modules/@babel/runtime-corejs2/core-js/symbol.js:1:18)
          at Object.<anonymous> (../../node_modules/@babel/runtime-corejs2/helpers/typeof.js:3:15)
          at Object.<anonymous> (../../node_modules/core-js/modules/_is-object.js:5:39)
          at Object.<anonymous> (../../node_modules/core-js/modules/_an-object.js:1:16)
          at Object.<anonymous> (../../node_modules/core-js/modules/es6.regexp.replace.js:3:16)
          at Object.<anonymous> (../../node_modules/jest-serializer-vue/index.js:5:1)
              at Array.forEach (<anonymous>)
    Running npm run test:unit (e.g. jest --updateSnapshot) produces:
    > vehicle-dashboard@0.0.1 test:unit /Users/deven.phillipsibm.com/Documents/RedHat/Workspace/vehicle-dashboard
    > jest --updateSnapshot
    
    jest-haste-map: Haste module naming collision: vehicle-dashboard
      The following files share their name; please adjust your hasteImpl:
        * <rootDir>/package.json
        * <rootDir>/.stryker-tmp/sandbox9254804/package.json
    
     PASS  test/jest/__tests__/SdkBootFile.spec.js
     PASS  test/jest/__tests__/RouterRoutes.spec.js
     PASS  test/jest/__tests__/MyLayout.spec.js
     PASS  test/jest/__tests__/Index.spec.js
    Deven Phillips
    @InfoSec812
    I also tried this with a newly created Quasar application and get similar results:
    npm install -g @quasar/cli
    quasar create test-project
    cd test-project
    quasar ext add @quasar/testing
    stryker init
    // Edit stryker.conf.js to point to jest.config.js in root of project
    stryker run
    Deven Phillips
    @InfoSec812
    I have opened an Issue on GitHub:stryker-mutator/stryker#2004
    Tony Amirault
    @Amirault
    any advice when having alias config ?
    "@src/": ["src/"],
    "@test/": ["test/"]
    Tony Amirault
    @Amirault
    ?
    Tony Amirault
    @Amirault
    someone ?
    matneyx
    @matneyx
    Hey, something stryker-related is hanging on my Win 10 machine -- I can't remove the .stryker-tmp folder because one of the sandboxes is still busy.
    But I can't see anything obvious in my task manager to kill
    Oliver Jägle
    @mrsimpson
    Hi there, I would love to see the html reports in my dashboard, but they need to be committed in oder to be visualized.
    Since I produce them during CI run, I don't want them to be part of the repo (reports is in.gitignore). Any suggestions?
    Oliver Jägle
    @mrsimpson
    Reply to self: It seems as if --dashboard.reportType=full does the trick
    matneyx
    @matneyx
    Is there any way to combine reports -- my repo has both js and .net stuff, and I'd love to have a single HTML report for both of them.
    Simon de Lang
    @simondel
    Het
    @hetdev
    Hi guys
    anyone knows how to setup stryker + jest in a monorepo?
    Marsen
    @marsen
    Hi all
    Antonello Caboni
    @anto-ac
    hi here - I’ve tried to set up stryker for a project to test it out and I’m experiencing the following:
    09:47:38 (27296) ERROR InitialTestExecutor One or more tests resulted in an error:
        Test runner crashed. Tried twice to restart it without any luck. Last time the error message was: Error: Child process [pid 27316] exited unexpectedly with exit code 1 (without signal). Last part of stdout and stderr was:
        /Users/anto/xxx/xxx/.stryker-tmp/sandbox5971395/config/test-setup.ts:46
            throw error;
            ^
    
        Error: expect(received).rejects.toHaveProperty(path, value)
    
        Expected path: "status"
    
        Expected value: 404
        Received value: undefined
            at Object.args [as toHaveProperty] (/Users/anto/xxx/xxx/node_modules/expect/build/index.js:242:20)
            at Object.toHaveProperty (/Users/anto/xxx/xxx/.stryker-tmp/sandbox5971395/src/js/common/http.test.js:80:26)
            at Object.asyncJestTest (/Users/anto/xxx/xxx/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37)
            at resolve (/Users/anto/xxx/xxx/node_modules/jest-jasmine2/build/queueRunner.js:43:12)
            at new Promise (<anonymous>)
            at mapper (/Users/anto/xxx/xxx/node_modules/jest-jasmine2/build/queueRunner.js:26:19)
            at promise.then (/Users/anto/xxx/xxx/node_modules/jest-jasmine2/build/queueRunner.js:73:41)
    Shaun S
    @shaunswales
    Good Afternoon,
    I was wondering if someone could explain maybe why I'm getting this issue...
    Test suite failed to run - Cannot find module '/.stryker-tmp/sandbox5912341/src/page-gen-trigger/node_modules/aws-sdk' from 'index.js'
    Nico Jansen
    @nicojs
    Hi, there and welcome! We're migrating to Slack in order to (hopefully) better help you. You can sign up for Slack here: https://join.slack.com/t/stryker-mutator/shared_invite/enQtOTUyMTYyNTg1NDQ0LTU4ODNmZDlmN2I3MmEyMTVhYjZlYmJkOThlNTY3NTM1M2QxYmM5YTM3ODQxYmJjY2YyYzllM2RkMmM1NjNjZjM
    (can't help myself)
    @shaunswales apparently aws-sdk can't be required from index.js please join our slack or open a question in our issue tracker.
    Steven Scott
    @Chowarmaan_twitter
    The current version of Chrome on Windows (Version 83.0.4103.61 (Official Build) (64-bit)) seems to have re-introduced the rmdir issue (stryker-mutator/stryker#277) where simply have a browser page open on the index.html output from stryker, causes the rmdir to not be able to remove the directory. This causes stryker not to write the new coverage report over the old.
    17:35:29 (26900) ERROR BroadcastReporter An error occurred during 'wrapUp' on reporter 'html'. [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\stevens\Development\PeelDartLeague\docs\mutation'] {
    errno: -4082,
    code: 'EBUSY',
    syscall: 'rmdir',
    path:
    Chris Shepherd
    @thesheps

    Heeey folks! I wondered if anyone might have a bit of time to help me get up and running with Stryker? I've got a completely Vanilla JS app I'm trying to configure but try as I might it's freaking out with:

    Error: Cannot load TestRunner plugin "jest". In fact, no TestRunner plugins were loaded. Did you forget to install it?

    I've tried a bunch of different flavours of configuration of jest and jest-cli but to no avail D:

    This is with @stryker-mutator/javascript-mutator and @stryker-mutator/jest-runner @3.24, btw

    Maarten Mulders
    @mthmulders
    Please scroll up for the link to Slack; this channel is abandoned.
    Ananyev Dmitry
    @dimit999

    Hello everyone

    I am a junior in js

    I am trying to reproduce it https://habr.com/ru/post/341094/
    I did everything according to this instruction

    but i have error:

    stryker run

    [2020-06-30 18:59:21.564] [INFO] ConfigReader - Using stryker.conf.js in the current working directory.
    (node:94869) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency
    (Use node --trace-warnings ... to show where the warning was created)
    [2020-06-30 18:59:21.637] [WARN] InputFileResolver - Globbing expression "/*.js" did not result in any files.
    [2020-06-30 18:59:21.640] [WARN] InputFileResolver - No files marked to be mutated, stryker will perform a dry-run without actually mutating anything.
    [2020-06-30 18:59:21.641] [INFO] InitialTestExecutor - Starting initial test run. This may take a while.
    [2020-06-30 18:59:21.837] [ERROR] InitialTestExecutor - One or more tests resulted in an error:
    Error: MODULE_NOT_FOUND (undefined) Error: Cannot find module '../app'
    Require stack:

    Could you help, what is wrong in code on this page?

    Ananyev Dmitry
    @dimit999
    solved
    Maarten Mulders
    @mthmulders
    Hi, there and welcome! We're migrating to Slack in order to (hopefully) better help you. You can sign up for Slack here: https://join.slack.com/t/stryker-mutator/shared_invite/enQtOTUyMTYyNTg1NDQ0LTU4ODNmZDlmN2I3MmEyMTVhYjZlYmJkOThlNTY3NTM1M2QxYmM5YTM3ODQxYmJjY2YyYzllM2RkMmM1NjNjZjM