Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ahmedeid6842/tdd

implement a class with some methods, but firstly doing test-driven development (TDD)
https://github.com/ahmedeid6842/tdd

Last synced: 25 days ago
JSON representation

implement a class with some methods, but firstly doing test-driven development (TDD)

Awesome Lists containing this project

README

        


TDD Project | Ruby


# πŸ“— Table of Contents

- [πŸ“— Table of Contents](#-table-of-contents)
- [TDD Project ](#tdd-project-)
- [πŸ›  Built With ](#-built-with-)
- [Tech Stack ](#tech-stack-)
- [Key Features ](#key-features-)
- [πŸ’» Getting Started ](#-getting-started-)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Install](#install)
- [Run tests](#run-tests)
- [πŸ‘₯ Authors ](#-authors-)
- [πŸ”­ Future Features ](#-future-features-)
- [🀝 Contributing ](#-contributing-)
- [⭐️ Show your support ](#️-show-your-support-)
- [πŸ™ Acknowledgments ](#-acknowledgments-)
- [πŸ“ License ](#-license-)

---

# TDD Project

**"TDD Project"** consists of creating test cases using the Rspec gem and applying the TDD methodology to a series of methods within a class. The purpose of the project is to practice testing following the best practices and applying a more optimal approach (TDD), which allows obtaining a more stable, clean and maintainable code.

---

## πŸ›  Built With

### Tech Stack

Ruby


Rspec gem

---

### Key Features


  • Ruby

  • Linters

    • Rubocop



  • Apply TDD to create unit tests

(back to top)

---

## πŸ’» Getting Started

To get a local copy up and running, follow these steps.

### Prerequisites

In order to run this project you need:


  • A code editor (we recommend Visual Studio Code)



  • Git and a GitHub account


### Setup

Clone this repository to your desired folder by using this πŸ‘‡οΈ command :

```
git clone https://github.com/ahmedeid6842/TDD.git
```

### Install

Go to the project directory:

```
cd TDD
```

Before to run the program, verify that you have Ruby installed on your OS running the following command:

```
ruby -v
```

It should show you the version of ruby ​​installed. If this does not happen and only an error message is displayed, then you should either verify your installation or install Ruby from scratch.

[Download and Install Ruby](https://www.ruby-lang.org/en/downloads/)

### Run tests

Run the following command inside the project folder:

```
rspec spec
```

This should display:

```
8 examples, 0 failures
```

This means that all 8 designed test cases have passed successfully.

(back to top)

---

## πŸ‘₯ Authors

πŸ‘€ **Nitcelis Bravo**

- GitHub: [Nitcelis Bravo](https://github.com/NitBravoA92)
- Twitter: [@softwareDevOne](https://twitter.com/softwareDevOne)
- LinkedIn: [Nitcelis Bravo Alcala](https://www.linkedin.com/in/nitcelis-bravo-alcala-b65340158)

πŸ‘€ **Ahmed Eid**

- GitHub: [Ahmed Eid](https://github.com/ahmedeid6842)
- Twitter: [@ahmedeid2684](https://twitter.com/ahmedeid2684)
- LinkedIn: [Ahmed Eid](https://www.linkedin.com/in/ameid/)

(back to top)

---

## πŸ”­ Future Features

Upcoming improvements:

- [x] Create unit tests following TDD methodology

(back to top)

---

## 🀝 Contributing

Contributions, issues, and feature requests are welcome!

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

(back to top)

---

## ⭐️ Show your support

If you like this project and know someone who might find it helpful, please share it.
Or give it a **star** ⭐️ if you like this project!

(back to top)

---

## πŸ™ Acknowledgments

I thank Microverse for this fantastic opportunity, and the code reviewers for their advice and time.

(back to top)

---

## πŸ“ License

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

(back to top)

---