Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen authored Oct 22, 2024
1 parent 585471c commit ff778b2
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,30 +48,26 @@ docker compose up --build
Run all the tests

```
docker compose exec web rt
docker compose exec web rt
docker compose exec web rts
```

Run a specific test and test within the test file.
```
docker compose exec web rt TEST=test/controllers/users_controller_test.rb
1. docker compose exec web bash
2. $> rts TEST=test/system/students_test.rb
Note: There is option to specific test within the test file with TESTOPTS="-n '/not allow student to add committee members/'" but it may not work with 'rt' or 'rts' scripts. You will have to specify the db url and environment.
```
#specific test with testopts does not work, then run it with rails_env and database_url as prefix.

# Access the containers

DB container
```
docker compose exec db bash
```

Webapp container
Web container
```
docker compose exec web bash
```

Run the tests in the Web container
```
docker compose exec web bash
rt
rts
```

0 comments on commit ff778b2

Please sign in to comment.