Skip to content
Closed
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
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ build/
.idea
.py*/
*.egg-info/
test/log.html
test/my_db_test.db
test/output.xml
test/report.html
log.html
output.xml
report.html
test/logs/
test/*.db
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ before_script:
- mysql -e 'create database my_db_test;'
- mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1';" -uroot
script:
# - flake8 src/
- if [ $DB == 'SQLite' ]; then (cd test/ && pybot SQLite3_DB_Tests.robot); fi
- if [ $DB == 'Postgres' ]; then (cd test/ && pybot PostgreSQL_DB_Tests.robot); fi
- if [ $DB == 'MySQL' ]; then (cd test/ && pybot MySQL_DB_Tests.robot); fi
# - flake8 src/
- if [ $DB == 'SQLite' ]; then (robot test/SQLite3_DB_Tests.robot test/Aliases_SQLite3_DB_Tests.robot); fi
- if [ $DB == 'Postgres' ]; then (robot test/robot PostgreSQL_DB_Tests.robot); fi
- if [ $DB == 'MySQL' ]; then (robot test/robot MySQL_DB_Tests.robot); fi
30 changes: 27 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
Robotframework-Database-Library
===============================
# Robotframework-Database-Library

Database Library contains utilities meant for Robot Framework's usage. This can allow you to query your database after an action has been made to verify the results. This is compatible* with any Database API Specification 2.0 module.
Database Library contains utilities meant for Robot Framework's usage. This can allow you to query your database after an action has been made to verify the results. This is compatible\* with any Database API Specification 2.0 module.

## Testing

Manualy start databases in docker-compose and then run "main" tests:

```
docker-compose up -d
docker-compose ps

# Update `DB_Variables.yaml` with proper ports

robot -V test/DB_Variables.yaml -i main test
```

Or just leave it all to the small Bash script that will setup docker-compose environment and set proper values to test/DB_Variables.yaml:

```
./run_tests.sh clean
```

If you wish to start only tests without setup docker-compose setup:

```
./run_tests.sh
```
Loading