---
title: "Discussion on \"Colocating Tests in Laravel\" | Hashnode"
description: "Discussion on \"Colocating Tests in Laravel\". In a typical Laravel application, tests are housed in the /Tests directory and spread across /Tests/Feature and /Tests/Unit, which mimics the structure within the app/ directory. While this is a great starting point for apps, it quickly breaks down w..."
url: "https://hashnode.com/posts/colocating-tests-in-laravel/66d49b4805c18647521dd034"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Colocating Tests in Laravel](https://cmgmyr.hashnode.dev/colocating-tests-in-laravel?utm_source=hashnode&utm_medium=feed)

In a typical Laravel application, tests are housed in the /Tests directory and spread across /Tests/Feature and /Tests/Unit, which mimics the structure within the app/ directory. While this is a great starting point for apps, it quickly breaks down w...

Sep 1, 2024 · 4 min read · cmgmyr.hashnode.dev  
Updated Sep 10, 2024  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#testing](https://hashnode.com/tag/testing)
-   [#pestphp](https://hashnode.com/tag/pestphp)
-   [#phpunit](https://hashnode.com/tag/phpunit)

## Written by

[Chris Gmyr](https://hashnode.com/@cmgmyr)

@cmgmyr · Cary, NC

  
[View profile](https://hashnode.com/@cmgmyr)

Staff Engineer @ Rula & TrianglePHP Co-Organizer | Slightly Caffeinated Podcast Co-Host

Husband, dad, &amp; grilling aficionado. Loves Laravel &amp; coffee. Staff Engineer @ Rula, TrianglePHP Co-Organizer, and Slightly Caffeinated Podcast Co-Host

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
