---
title: "Adding a Test Task to the VS Code Command Palette"
url: https://daily.dev/posts/adding-a-test-task-to-the-vs-code-command-palette-zbfchkgif
source_url: https://nodogmablog.bryanhogan.net/2021/07/adding-a-test-task-to-the-vs-code-command-palette
type: article
source: "No Dogma Blog (Bryan Hogan)"
published: 2026-05-31T07:46:57.415Z
updated: 2026-05-31T08:52:13.788Z
tags: ["testing", ".net", "vscode"]
reading_time: 1
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding a Test Task to the VS Code Command Palette

**[No Dogma Blog \(Bryan Hogan\)](https://daily.dev/sources/bryanhogan)** · 1 min read · 0 upvotes · 0 comments

## Summary

A short guide on manually adding a test task to the VS Code Command Palette by editing the `.vscode/tasks.json` file. The built-in configure option doesn't auto-populate a test task, so the fix is to manually add a task entry with `isTestCommand: true` and the `dotnet test` command.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://nodogmablog.bryanhogan.net/2021/07/adding-a-test-task-to-the-vs-code-command-palette>

## Similar posts on daily.dev

- [VS Code's task runner saves me hours every week, but almost nobody knows it exists](https://daily.dev/posts/vs-code-s-task-runner-saves-me-hours-every-week-but-almost-nobody-knows-it-exists-zqxqtgsbg) · XDA Developers · 0 upvotes · 0 comments
- [I stopped switching to a terminal to run scripts once I found VS Code's task runner](https://daily.dev/posts/i-stopped-switching-to-a-terminal-to-run-scripts-once-i-found-vs-code-s-task-runner-6iefnfvhk) · XDA Developers · 1 upvotes · 0 comments
- [I automated my entire dev startup with one VS Code shortcut, and the terminal became optional](https://daily.dev/posts/i-automated-my-entire-dev-startup-with-one-vs-code-shortcut-and-the-terminal-became-optional-zq0l6bosq) · XDA Developers · 3 upvotes · 1 comments

---

Tags: [#testing](https://daily.dev/tags/testing), [#.net](https://daily.dev/tags/.net), [#vscode](https://daily.dev/tags/vscode)

[View this post on daily.dev](https://daily.dev/posts/adding-a-test-task-to-the-vs-code-command-palette-zbfchkgif)
