Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.

## 🛠 Built With

### Tech Stack

Client

### Key Features

- factorial Method
- Reverse Method
- fizzbuzz Method

(back to top)

## 🚀 Live Demo

- N/A

(back to top)

## 💻 Getting Started

### 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
```

### Usage

To run the project, execute the following command:

```
ruby [file_name].rb
```

### Run tests

To run tests, run the following command:

```
rspec *_rspec.rb
```

(back to top)

## 👥 Authors

👤 **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/)

(back to top)

## 🔭 Future Features

- Add more tests

(back to top)

## 🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](https://github.com/KanzaTahreem/TDD-Rspec/issues).

(back to top)

## ⭐️ Show your support

If you like this project and want to support me make cooler projects Give this project a Star.

(back to top)

## 📝 License

This project is [MIT](./LICENSE) licensed.

(back to top)