Skip to content
| Marketplace
Sign in
Visual Studio Code>Testing>Angular Unit Test HelperNew to Visual Studio Code? Get it now.
Angular Unit Test Helper

Angular Unit Test Helper

Pathum Senaratna

|
1 install
| (0) | Free
Run Angular unit tests individually directly from Visual Studio Code, just like C# tests in Test Explorer.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Angular Unit Test Helper

A lightweight VS Code extension that lets you run individual Angular unit tests directly from the editor. Get real-time test results, failure summaries, and debugging insights — all without leaving VS Code.


Features

  • Run a single Angular/Jasmine test with one click
  • View test results inside the VS Code Test Explorer
  • Pass/Fail summary with counts
  • Detailed failure messages for quick debugging
  • Automatically detects nearest it() or describe() under cursor
  • Works with Angular CLI projects using Karma + Jasmine

Requirements

Your Angular project must be using:

  • Angular CLI (@angular/cli)
  • Jasmine/Karma test environment (default Angular testing setup)
  • Standard ng test command

If you use a custom runner, additional config may be needed.


Extension Settings

This extension contributes the following settings:

Setting Description
angularUnitTestHelper.autoReveal Automatically reveal the Test Result view after running a test.
angularUnitTestHelper.debugMode Enables verbose logging in the output panel.

How It Works

  1. Place your cursor on an it() or describe() block
  2. Run the command:
  3. The extension internally executes:
  4. Results appear in the Test Results tab:
  • Pass/Fail indicator
  • Summary (total passed/failed)
  • Failure details
  • Error stack trace

Known Issues

  • Custom test runners not supporting --testNamePattern may require custom setup
  • Very large test files may take slightly longer to detect test blocks
  • Angular versions below v12 are not officially supported

Release Notes

1.0.0

  • Initial release
  • Run single Angular test
  • Integrated VS Code Test Explorer
  • Added summary + detailed failure output

Useful Links

  • VS Code Extension Guidelines
    https://code.visualstudio.com/api/references/extension-guidelines

  • Publishing Extensions
    https://code.visualstudio.com/api/working-with-extensions/publishing-extension


Enjoy fast, focused Angular testing — without leaving VS Code!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft