Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] - Start to add backup and test commands #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/backup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Backup

## How to Make Backup of database
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## How to Make Backup of database
## How to make a backup of the database


`docker-compose exec db pg_dump -U <User> <db> > smersh.sql`
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ date: 31/07/2021
4. [Report](report.md)
5. [Architecture](architecture.md)
6. [Smersh-cli](smersh-cli.md)
5. [Tests](tests.md)
6. [Backup](backup.md)
10 changes: 10 additions & 0 deletions docs/tests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Tests

## Run behat test
```
make reset-db
docker-compose exec php sh
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be run inside the container as command instead of connect through the shell inside it.

./vendor/bin/behat
```

>you can specify scenario like this `./vendor/bin/behat --name="Impact API testing"