Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kanzatahreem/tdd-rspec
Followed test-driven development (TDD) approach to implement a class and methods
https://github.com/kanzatahreem/tdd-rspec
factorial fizz-buzz reverse ruby spec test-driven-development
Last synced: 9 days ago
JSON representation
Followed test-driven development (TDD) approach to implement a class and methods
- Host: GitHub
- URL: https://github.com/kanzatahreem/tdd-rspec
- Owner: KanzaTahreem
- License: mit
- Created: 2023-01-06T19:12:17.000Z (about 2 years ago)
- Default Branch: dev
- Last Pushed: 2023-02-09T08:27:45.000Z (almost 2 years ago)
- Last Synced: 2024-11-18T05:39:49.230Z (2 months ago)
- Topics: factorial, fizz-buzz, reverse, ruby, spec, test-driven-development
- Language: Ruby
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![](https://img.shields.io/badge/Microverse-blueviolet)
# 📗 Table of Contents
- [📗 Table of Contents](#-table-of-contents)
- [📖 Test-driven development (TDD) Project ](#-about-the-project-)
- [🛠 Built With ](#-built-with-)
- [Tech Stack ](#tech-stack-)
- [Key Features ](#key-features-)
- [🚀 Live Demo ](#-live-demo-)
- [💻 Getting Started ](#-getting-started-)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Install](#install)
- [Usage ](#usage-)
- [Run tests](#run-tests)
- [👥 Authors ](#-authors-)
- [🔭 Future Features ](#-future-features-)
- [🤝 Contributing ](#-contributing-)
- [⭐️ Show your support ](#️-show-your-support-)
- [📝 License ](#-license-)# 📖 Test-driven development (TDD) Project
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.Client
- factorial Method
- Reverse Method
- fizzbuzz Method
- N/A
### Prerequisites
In order to run this project you need:
- [Ruby](https://www.ruby-lang.org/en/) installed and running. To get more information, read the [installation instructions](https://github.com/microverseinc/curriculum-ruby/blob/main/simple-ruby/articles/ruby_installation_instructions.md).
- You should be able to use [IRB](https://en.wikipedia.org/wiki/Ruby_(programming_language)#Features).
### Setup
Clone this repository to your desired folder:
```
git clone [email protected]:KanzaTahreem/TDD-Rspec
cd TDD-Rspec
```
### Install
Install thr project dependencies with:
```
bundle install
```
To run the project, execute the following command:
```
ruby [file_name].rb
```
### Run tests
To run tests, run the following command:
```
rspec *_rspec.rb
```
👤 **Author 1**
- GitHub: [@KanzaTahreem](https://github.com/KanzaTahreem)
- Twitter: [@kanza_tahreem](https://twitter.com/kanza_tahreem)
- LinkedIn: [Kanza Tahreem](https://www.linkedin.com/in/kanza-tahreem/)
👤 **Author 2**
- GitHub: [@MahdiAghaali](https://github.com/MahdiAghaali)
- Twitter: [@Mohi_Aghaali](https://twitter.com/Mohi_Aghaali)
- LinkedIn: [mahdi-aghaali](https://www.linkedin.com/in/mahdi-aghaali/)
- Add more tests
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/KanzaTahreem/TDD-Rspec/issues).
If you like this project and want to support me make cooler projects Give this project a Star.
This project is [MIT](./LICENSE) licensed.