<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/run-pest-tests-in-vs-code-with-better-phpunit-bcfygp40i" -->

---
title: Run Pest Tests in VS Code with Better PHPUnit | daily.dev
description: The Better PHPUnit test runner for VS Code now supports running PestPHP tests. You can learn more about the extension and install it from the Visual Studio...
canonical: https://daily.dev/posts/run-pest-tests-in-vs-code-with-better-phpunit-bcfygp40i
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Run Pest Tests in VS Code with Better PHPUnit | daily.dev
og:description: The Better PHPUnit test runner for VS Code now supports running PestPHP tests. You can learn more about the extension and install it from the Visual Studio...
og:url: https://daily.dev/posts/run-pest-tests-in-vs-code-with-better-phpunit-bcfygp40i
og:image: https://api.daily.dev/og/posts/bCfygP40i.png
og:image:alt: Run Pest Tests in VS Code with Better PHPUnit
og:image:width: 1200
og:image:height: 630
og:locale: 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.

# Run Pest Tests in VS Code with Better PHPUnit

**[Laravel News](https://daily.dev/sources/ln)** · 1 min read · 13 upvotes · 3 comments

## Summary

The Better PHPUnit test runner for VS Code now supports running PestPHP tests. You can learn more about the extension and install it from the Visual Studio Marketplace page.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/pest-support-added-to-better-phpunit-vs-code-extension>

## Community discussion

Top comments from developers on daily.dev.

**@anciao\_dev** · 0 upvotes

> Caleb has Midas touch.
> I used to run using Better Pest, but I'll try it out this one.

---

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

[View this post on daily.dev](https://daily.dev/posts/run-pest-tests-in-vs-code-with-better-phpunit-bcfygp40i)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Run Pest Tests in VS Code with Better PHPUnit","url":"https://daily.dev/posts/run-pest-tests-in-vs-code-with-better-phpunit-bcfygp40i","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/run-pest-tests-in-vs-code-with-better-phpunit-bcfygp40i"},"datePublished":"2023-10-11T13:12:32.926Z","dateModified":"2026-03-15T04:57:14.086Z","description":"The Better PHPUnit test runner for VS Code now supports running PestPHP tests. You can learn more about the extension and install it from the Visual Studio...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0c55b6b17015a07b84d8f8dd22225568?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0c55b6b17015a07b84d8f8dd22225568?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Laravel News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Laravel News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/ln","url":"https://daily.dev/sources/ln"},"commentCount":3,"discussionUrl":"https://daily.dev/posts/run-pest-tests-in-vs-code-with-better-phpunit-bcfygp40i","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":13},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":3}],"keywords":"devtools,php,testing,vscode","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Laravel News","item":"https://daily.dev/sources/ln"},{"@type":"ListItem","position":3,"name":"Run Pest Tests in VS Code with Better PHPUnit"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/run-pest-tests-in-vs-code-with-better-phpunit-bcfygp40i","comment":[{"@type":"Comment","text":"Caleb has Midas touch.\nI used to run using Better Pest, but I’ll try it out this one.","datePublished":"2023-10-12T18:11:38.268Z","url":"https://daily.dev/posts/bCfygP40i#c-RgYRqLQUd","author":{"@type":"Person","name":"Balduino Fernando","url":"https://daily.dev/anciao_dev","image":"https://avatars.githubusercontent.com/u/20538071?v=4"}}]}
```

