Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Execution Tests with DOCKER
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelsSantos committed Oct 23, 2019
1 parent e91a194 commit dfa4d9f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,34 @@ docker logs <container>
docker logs -f <container>
```

## Execution Tests with **DOCKER**

### Change enviroments

Change de value of key RAILS_ENV to test in ./env_file.env

```env
RAILS_ENV=test
```

### Run compose

```bash
docker-compose up -d
```

### List containers and get "web" containerid

```bash
docker ps -a
```

### Run tests

```bash
docker exec -it <container> bash -c "bundle exec rspec"
```

## Become a Life to Remind Developer

To contribute to the project check the open issues. If what you want to improve or the problem you found is not already listed, create a new issue with a description of the problem. To contribute to the project send a Pull Request to the repository, it will be evaluated later.
Expand Down

0 comments on commit dfa4d9f

Please sign in to comment.