Coder Social home page Coder Social logo

laravel-tdd-poc's Introduction

Logo

Implementação do TDD no Laravel 🇧🇷

Laravel MySQL

Dependências

  • Shell 🐚
  • Docker 🐳

Instalação

01 -) Clone:

$ git clone https://github.com/thiiagoms/laravel-tdd-poc

02 -) Navegue até o diretório da aplicação:

$ cd laravel-tdd-poc
laravel-tdd-poc $

03 -) Execute o script setup.sh para iniciar o ambiente dos containers:

laravel-tdd-poc $ chmod +x setup.sh
laravel-tdd-poc $ ./setup.sh

██╗      █████╗ ██████╗  █████╗ ██╗   ██╗███████╗██╗         ████████╗██████╗ ██████╗
██║     ██╔══██╗██╔══██╗██╔══██╗██║   ██║██╔════╝██║         ╚══██╔══╝██╔══██╗██╔══██╗
██║     ███████║██████╔╝███████║██║   ██║█████╗  ██║            ██║   ██║  ██║██║  ██║
██║     ██╔══██║██╔══██╗██╔══██║╚██╗ ██╔╝██╔══╝  ██║            ██║   ██║  ██║██║  ██║
███████╗██║  ██║██║  ██║██║  ██║ ╚████╔╝ ███████╗███████╗       ██║   ██████╔╝██████╔╝
╚══════╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═╝  ╚═══╝  ╚══════╝╚══════╝       ╚═╝   ╚═════╝ ╚═════╝


    [*] Author: thiiagoms
    [*] E-mail: [email protected]

=> Iniciando os containers (Isso pode demorar um pouco...)

Uso

01 -) Para executar os testes da aplicação, execute o seguinte comando:

██╗      █████╗ ██████╗  █████╗ ██╗   ██╗███████╗██╗         ████████╗██████╗ ██████╗
██║     ██╔══██╗██╔══██╗██╔══██╗██║   ██║██╔════╝██║         ╚══██╔══╝██╔══██╗██╔══██╗
██║     ███████║██████╔╝███████║██║   ██║█████╗  ██║            ██║   ██║  ██║██║  ██║
██║     ██╔══██║██╔══██╗██╔══██║╚██╗ ██╔╝██╔══╝  ██║            ██║   ██║  ██║██║  ██║
███████╗██║  ██║██║  ██║██║  ██║ ╚████╔╝ ███████╗███████╗       ██║   ██████╔╝██████╔╝
╚══════╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═╝  ╚═══╝  ╚══════╝╚══════╝       ╚═╝   ╚═════╝ ╚═════╝


    [*] Author: thiiagoms
    [*] E-mail: [email protected]

[*] Executando os testes...


   PASS  Tests\Unit\ExampleTest
  ✓ example

   PASS  Tests\Feature\Controllers\Category\CategoryControllerTest
  ✓ category index get route
  ✓ category single get route
  ✓ category create post route
  ✓ category create post route should validate when try create a invalid category
  ✓ category update put route
  ✓ category update patch route
  ✓ category destroy delete route

   PASS  Tests\Feature\ExampleTest
  ✓ example

  Tests:  9 passed
  Time:   0.18s

laravel-tdd-poc's People

Contributors

thiiagoms avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.