Coder Social home page Coder Social logo

If even 1 test fails, tests fail to load Test discovery failed: Process exited with non-zero status code 1 (Click to show log) about karma-test-explorer HOT 8 CLOSED

lucono avatar lucono commented on May 23, 2024
If even 1 test fails, tests fail to load Test discovery failed: Process exited with non-zero status code 1 (Click to show log)

from karma-test-explorer.

Comments (8)

Charuru avatar Charuru commented on May 23, 2024

This bug seems to be new in 0.7, downgraded to 0.6.1 works fine.

from karma-test-explorer.

Charuru avatar Charuru commented on May 23, 2024

Actually do not need to go back so far, 0.7.3 works correctly.

from karma-test-explorer.

lucono avatar lucono commented on May 23, 2024

@Charuru I'm not able to reproduce this issue with the latest version, 0.7.5. Can you create and share a minimal project repo that reproduces the issue?

from karma-test-explorer.

lucono avatar lucono commented on May 23, 2024

Thanks @Charuru. I was able to reproduce the issue consistently with your sample project and when using the jsdom browser, and across all recent versions of the extension, including v0.7.3. I am not however, able to reproduce it with the extension default chrome browser for any of the recent extension versions, including the latest version and v0.7.3.

The issue seems to be with jsdom, where it fails when karma tries to trigger the initial test discovery /run request to fully populate the project tests into the test explorer view.

Are you able to reproduce the issue with Chrome, Firefox, or any other browser?

from karma-test-explorer.

Charuru avatar Charuru commented on May 23, 2024

@lucono Thanks for trying it, doesn't make a difference on my machine whether I use jsdom or ChromeCanaryHeadless. Same behavior.

from karma-test-explorer.

Charuru avatar Charuru commented on May 23, 2024

Also, if I click on "Retry Test Load" it will keep on erroring, but if I save the test and it autoruns then the explorer will populate correctly.

I don't know if this is useful information, but when I click on the refresh button on test explorer, I see the tests being runned, all the logs, etc are as expected, and the tests show up for a moment before disappearing in place of the error and then Failed to load tests - Test discovery failed: Process exited with non-zero status code 1. This is ChromeCanaryHeadless.

from karma-test-explorer.

Charuru avatar Charuru commented on May 23, 2024

Changing to HTTP from CLI fixed this too.

from karma-test-explorer.

lucono avatar lucono commented on May 23, 2024

I see, thanks for the update. The karmaTestExplorer.testTriggerMethod setting is indeed experimental. In fact, its http option is stable, but the cli trigger method is actually what's experimental, so I'm not surprised that you ran into issues using that option.

Glad you were able to identify the issue.

from karma-test-explorer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.