Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.1 KB

README.md

File metadata and controls

45 lines (35 loc) · 1.1 KB

✨ 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