Skip to content

Releases

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 26 Nov 22:52
5f9e35e
  • Run Coverage... lists the test projects of the workspace and runs the
    ones you tick, so a workspace with many projects no longer has to run all
    of them. Nothing is ticked the first time; afterwards the projects run last
    time come ticked. It is now the button in the Testing view title.
  • Run All Coverage is kept: Command Palette, the ... menu of the Testing
    view, and a button in the Run Coverage... list.
  • Sequential or parallel runs, chosen with coverageTools.run.mode or the
    switch button of the Run Coverage... list. Sequential stays the default,
    so that coverage runs do not take over the machine's processor and memory.
  • Parallel runs adapt to the machine: at most half the processor cores (4 at
    most, or coverageTools.run.maxParallel), never more runs than the free
    memory holds, and no further run while memory is short. A machine with few
    cores or little memory runs in sequence in either mode. .NET projects always
    run one after another.

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 15:20
911ef13

Added

  • Accumulated coverage for every project in the workspace, shown through VS
    Code's native Test Coverage UI: per-file and per-folder percentages,
    coverage bars and line-by-line highlighting. Running one project updates
    only that project's numbers.
  • Run All Coverage runs every test project in the workspace, one at a time,
    with progress and cancellation (Command Palette and Testing view title).
  • Run Coverage Here in the Explorer right-click menu runs a test project,
    solution, folder or test file; it appears only where there are tests to run,
    and partial runs add to the project's coverage.
  • Automatic detection of coverage reports written by runs made outside the
    extension (terminal, tasks, scripts): Cobertura, Istanbul JSON and LCOV,
    whatever tool wrote them, and coverage.py .coverage data files.
  • .NET (C#) support for VSTest test projects, using the coverage collector
    the project already has, and for Microsoft.Testing.Platform test projects
    (MSTest, NUnit, xUnit v3, TUnit) through the platform's code coverage
    extension.
  • Node support for Jest and Vitest, with or without a test script, and for
    any other tool (Mocha, AVA, node --test, …) through a bundled c8.
  • Python support for pytest and unittest, through pytest-cov or
    coverage.py.
  • Single projects and monorepos handled without configuration
    (coverageTools.nestedProjects for nested projects), and a custom coverage
    command per project (coverageTools.commands).
  • A status bar item with the accumulated total, showing the same percentage
    as the root of the Test Coverage view, with a per-project tooltip; a click
    brings the accumulated coverage back after another extension's run.
  • Show Coverage and Clear Coverage commands.
  • Read-only behaviour in untrusted workspaces: no command runs, reports are
    still read.
  • Lightweight operation: no work at startup or at rest, one file watcher per
    workspace folder, and report parsing off the main extension thread.
  • Usage screenshots in the README, captured from the sample workspace.
  • Automatic releases: every new version is published to the VS Code
    Marketplace (and Open VSX) and attached as a .vsix to its GitHub release.