6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-22 13:33:07 +01:00
Python tools used for Firebird QA This is a mirror - read only access!
Go to file
2021-04-28 12:53:12 +02:00
backups db backup files used by tests 2021-04-26 20:03:51 +02:00
databases database files used by tests 2021-04-26 20:04:53 +02:00
firebird/qa Change name scheme for tests 2021-04-28 12:53:12 +02:00
tests Change name scheme for tests 2021-04-28 12:52:50 +02:00
.gitignore pytest plugin for Firebird QA 2021-04-26 20:02:48 +02:00
firebird.conf pytest plugin for Firebird QA 2021-04-26 20:02:48 +02:00
LICENSE Initial commit 2020-09-15 11:41:24 +02:00
pyproject.toml pytest plugin for Firebird QA 2021-04-26 20:02:48 +02:00
README.rst pytest plugin for Firebird QA 2021-04-26 20:02:48 +02:00
setup.cfg fbt-conv utility 2021-04-27 17:48:17 +02:00
setup.py pytest plugin for Firebird QA 2021-04-26 20:02:48 +02:00

===========
Firebird QA
===========

This package contains:

- pytest plugin that provides support for testing the Firebird engine. It uses new Python
  driver for Firebird (firebird-driver).
- tests for Firebird engine (directory 'tests')
- files needed by tests (directories 'databases', 'files', 'backups')

Requirements: Python 3.8+, Firebird 3+

Usage Guide
-----------

1. Clone the git repository

2. Install the plugin and required dependencies by running next command from repo. directory::

   pip install -e .

3. Create / edit `firebird.conf` file. The default file defines `local` server with default
   SYSDBA password. You may change it or add more servers.

3. Use pytest to run tests.

   The plugin adds nex options to pytests::

      Firebird server:
        --server=SERVER       Server configuration name
        --bin-dir=PATH        Path to directory with Firebird utilities
        --protocol={xnet,inet,inet4,wnet}
                              Network protocol used for database attachments
        --runslow             Run slow tests

   To run all tests (except slow ones) against local server use next command::

      pytest --server local ./tests

  Note: If plugin fails to determine the directory with Firebird utilities (isql, gbak etc.),
        use `--bin-dir` option to specify it.