Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucono/karma-test-explorer
Visual Studio Code extension for Karma and Angular testing with the Jasmine or Mocha framework
https://github.com/lucono/karma-test-explorer
angular jasmine javascript karma karma-jasmine karma-mocha mocha test-runner testing typescript unit-testing vscode vscode-extension
Last synced: 3 months ago
JSON representation
Visual Studio Code extension for Karma and Angular testing with the Jasmine or Mocha framework
- Host: GitHub
- URL: https://github.com/lucono/karma-test-explorer
- Owner: lucono
- License: mit
- Created: 2021-08-06T03:17:12.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-18T15:58:48.000Z (about 1 year ago)
- Last Synced: 2024-10-01T09:42:59.894Z (4 months ago)
- Topics: angular, jasmine, javascript, karma, karma-jasmine, karma-mocha, mocha, test-runner, testing, typescript, unit-testing, vscode, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=lucono.karma-test-explorer
- Size: 1.42 MB
- Stars: 35
- Watchers: 4
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# DEPRECATION NOTICE
# With the [deprecation](https://github.com/karma-runner/karma#karma-is-deprecated-and-is-not-accepting-new-features-or-general-bug-fixes) 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](https://github.com/lucono/karma-test-explorer/discussions) area to possibly get help from other users.
---
[![Build and Test](https://github.com/lucono/karma-test-explorer/actions/workflows/node.js.yml/badge.svg)](https://github.com/lucono/karma-test-explorer/actions/workflows/node.js.yml)
# 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](https://karma-runner.github.io/latest/index.html) for testing.
![Karma Test Explorer screenshot](docs/img/extension-screenshot.png)
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](docs/img/sidebar.png)
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](https://marketplace.visualstudio.com/items?itemName=lucono.karma-test-explorer) and star it on [GitHub](https://github.com/lucono/karma-test-explorer/stargazers). For issues, questions, or feature requests, see [Reporting Issues](docs/documentation.md#reporting-issues).---
## Why this Extension
Karma Test Explorer is a complete rewrite of the deprecated [Angular/Karma Test Explorer](https://github.com/Raagh/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](https://code.visualstudio.com/docs/remote/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](docs/documentation.md#features)## 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](https://marketplace.visualstudio.com/items?itemName=lucono.karma-test-explorer) and wait a moment while it initializes
- When done, your tests should be displayed in the Testing side bar
- Use the many [extension settings](docs/documentation.md#extension-settings) to customize it to any other needs of your project
- If you run into any issues, see [extension setup](docs/documentation.md#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](docs/documentation.md#documentation---karma-test-explorer).
## Acknowledgement
Special thanks to the authors of the deprecated [Angular/Karma Test Explorer](https://github.com/Raagh/angular-karma_test-explorer) on which Karma Test Explorer was originally based.
## See Also
[Documentation](docs/documentation.md#documentation---karma-test-explorer) | [Contributing](CONTRIBUTING.md#contributing---karma-test-explorer) | [Changelog](CHANGELOG.md#changelog) | [Report an issue](docs/documentation.md#reporting-issues)