The idea behind test-driven development (TDD) is that tests are not an afterthought. Also, it makes you think about how your code behaves before starting to code.
So the idea behind TDD is simple enough:
- Write a test.
- Run the test; it fails.
- Write code.
- Run the test; it passes. If it fails go back to step 3.
- factorial Method
- Reverse Method
- fizzbuzz Method
- N/A
In order to run this project you need:
- Ruby installed and running. To get more information, read the installation instructions.
- You should be able to use IRB.
Clone this repository to your desired folder:
git clone git@github.com:KanzaTahreem/TDD-Rspec
cd TDD-Rspec
Install thr project dependencies with:
bundle install
To run the project, execute the following command:
ruby [file_name].rb
To run tests, run the following command:
rspec *_rspec.rb
👤 Author 1
- GitHub: @KanzaTahreem
- Twitter: @kanza_tahreem
- LinkedIn: Kanza Tahreem
👤 Author 2
- GitHub: @MahdiAghaali
- Twitter: @Mohi_Aghaali
- LinkedIn: mahdi-aghaali
- Add more tests
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project and want to support me make cooler projects Give this project a Star.
This project is MIT licensed.