Skip to content

Oaparecido/learning-tdd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✨ LEARNING-TDD ✨

📌 learning-tdd is a project for you learn how to development in TDD (Test Driven Development).

🚀 Installation 🚀

📌 It's very simple you just need to have the docker and docker-compose installed.
With that installed just run the following command.

 $ docker-compose build
 $ docker-compose up -d
 $ docker-compose exec app

🚀 How to create new tests 🚀

📌 First: you need create a new file test into ./tests

📌 Second: added a new tag testsuite into phpunit.xml

    <testsuite name="new name for the you testsuite">
        <file>"file path"</file>
    </testsuite>

🚀 How to run tests 🚀

 $ docker-compose exec app phpunit --testsuite name_from_test

📌 For more information, access:
(Doc) - PHPUnit

🚨 The test sets created so far 🚨

✅ Example test:

📌 Is a test for exemplification from use phpunit with testsuite.

RUN

 $ docker-compose exec app phpunit --testsuite example

About

This project will be help in your use phpunit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published