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
2022-01-23 20:41:55 +01:00
backups Missing backup 2021-11-12 18:31:58 +01:00
databases database files used by tests 2021-04-26 20:04:53 +02:00
files Missing files for functional.basic.build test 2021-12-30 19:44:47 +01:00
firebird/qa plugin v0.10.2 - user_factory() password now optional 2022-01-22 22:00:55 +01:00
tests New metadata + cleanup 2022-01-23 20:41:55 +01:00
.gitignore pytest plugin for Firebird QA 2021-04-26 20:02:48 +02:00
firebird-driver.conf Default server user and password 2021-12-14 20:50:47 +01:00
LICENSE Initial commit 2020-09-15 11:41:24 +02:00
pyproject.toml Bump version 2021-10-21 19:28:33 +02:00
README.rst Plugin enhancenemts 2021-11-11 17:59:04 +01:00
setup.cfg plugin v0.10.2 - user_factory() password now optional 2022-01-22 22:00:55 +01: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
        --save-output         Save output from isql and other executed utilities into ./out subdirectory

   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.