Coder Social home page Coder Social logo

lucono / karma-test-explorer Goto Github PK

View Code? Open in Web Editor NEW
34.0 4.0 13.0 1.45 MB

Visual Studio Code extension for Karma and Angular testing with the Jasmine or Mocha framework

Home Page: https://marketplace.visualstudio.com/items?itemName=lucono.karma-test-explorer

License: MIT License

Dockerfile 0.14% Shell 0.01% JavaScript 0.41% TypeScript 99.44%
javascript typescript testing karma angular jasmine mocha vscode test-runner vscode-extension karma-jasmine karma-mocha unit-testing

karma-test-explorer's Introduction

DEPRECATION  NOTICE

With the deprecation of Karma runner, Karma Test Explorer is now also deprecated. It will no longer be releasing any new features or bug fixes.

If you continue to use Karma and this extension, you are encouraged to seek support for any new issues by posting in the Discussions area to possibly get help from other users.


Build and Test

Karma Test Explorer (for Angular, Jasmine, and Mocha)

This extension adds a rich and fully integrated testing experience to Visual Studio Code for Angular, TypeScript, and JavaScript projects that use Karma for testing.

Karma Test Explorer screenshot

It shows your Karma tests in a visual explorer in VS Code, adds code lenses and gutter decorations to your test files, and shows test failure details inline within your code at the point of each failure.

Karma Test Explorer screenshot

The side bar shows rich information about your tests, including focused ⚡ and disabled 💤 tests (left image), and details summarizing passed, failed and skipped tests after each test execution (right image).


Please take a minute to rate this extension in the marketplace and star it on GitHub. For issues, questions, or feature requests, see Reporting Issues.


Why this Extension

Karma Test Explorer is a complete rewrite of the deprecated Angular/Karma Test Explorer, and adds various significant enhancements and new features to provide robust support for:

  • Cloud and remote development sceanarios with Dev Containers
  • Good performance with large projects having many thousands of tests
  • Zero-configuration user experience that "just works" for most setups
  • Flexibility to support a wide range of testing scenarios and workflows
  • Reliability, usability, and productivity

Features

  • Rich visual test browsing, execution, and debugging
  • Angular, Karma, Jasmine, and Mocha support
  • Multi-project / monorepo / multi-root workspace support
  • Live test validation of changing product code
  • Auto-detection and fix recommendations for various testing issues
  • Much more

Quick Start

In many cases, testing should work out of the box:

  • Ensure Chrome browser and the project dependencies are installed
  • Install the Karma Test Explorer extension and wait a moment while it initializes
  • When done, your tests should be displayed in the Testing side bar
  • Use the many extension settings to customize it to any other needs of your project
  • If you run into any issues, see extension setup for more detailed setup instructions

Documentation

For a more detailed guide on setting up, customizing, and fully leveraging all the available features to work for your project, please see the Karma Test Explorer Documentation.

Acknowledgement

Special thanks to the authors of the deprecated Angular/Karma Test Explorer on which Karma Test Explorer was originally based.

See Also

Documentation  |  Contributing  |  Changelog  |  Report an issue

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.