- 📖 About the Project
- 💻 Getting Started
- 👥 Authors
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show Your Support
- 🙏 Acknowledgements
Welcome to the Ruby TDD Project! This project is designed to help you learn and practice Test-Driven Development (TDD) in Ruby. You will create a class called Solver and implement various methods while following the TDD approach.
Language
- Implement a class called
Solver. - Create a
factorialmethod that calculates the factorial of a given integerN, handling edge cases and raising exceptions for negative integers. - Implement a
reversemethod that reverses a given string. - Create a
fizzbuzzmethod that follows specific rules for returning strings based on divisibility by 3 and 5. - Emphasize the TDD approach by writing tests first for all methods.
To get started with the Ruby TDD Project, follow these steps:
Before you begin, ensure you have Ruby installed on your system. You can check if Ruby is installed by running the following command in your terminal:
ruby -vExample commands:
cd my-folder
git clone https://github.com/Eccb7/Ruby-TDDExample command:
cd Ruby-TDDExample command:
rspec👤 Ojwang Briton
- GitHub: @Eccb7
- Twitter: @briton_otieno4
- LinkedIn: briton-otieno
- Behavior-Driven Development (BDD): Extend TDD to include BDD principles, using tools like Cucumber or RSpec with feature tests and scenarios written in plain language.
- Test Data Management: Implement strategies for managing test data effectively, including fixtures, factories, or database snapshots, to ensure consistent and repeatable tests.
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project, give it a ⭐️
I would like to thank microverse for the support they have provided
This project is MIT licensed.