6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-22 21:43:06 +01:00
firebird-qa/README.rst

82 lines
2.3 KiB
ReStructuredText
Raw Normal View History

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+
2022-02-24 19:21:45 +01:00
You should definitelly read the `QA suite documanetation`_ !
Quickstart
----------
2021-04-26 20:02:48 +02:00
1. Clone the git repository
2. Install the plugin and required dependencies by running next command from repo. directory::
pip install -e .
2022-02-24 19:21:45 +01:00
3. Adjust Firebird server configuration.
Firebird 3::
# Required
ExternalFileAccess = Full
AuthServer = Srp, Legacy_Auth
UserManager = Srp, Legacy_UserManager
WireCrypt = Enabled
# Recommended
DefaultDbCachePages = 10000
MaxUnflushedWrites = -1
MaxUnflushedWriteTime = -1
BugcheckAbort = 1
Firebird 4+::
# Required
ExternalFileAccess = Full
AuthServer = Srp256, Legacy_auth
UserManager = Srp, Legacy_UserManager
ReadConsistency = 0
WireCrypt = Enabled
ExtConnPoolSize = 10
ExtConnPoolLifeTime = 10
# Recommended
DefaultDbCachePages = 10000
MaxUnflushedWrites = -1
MaxUnflushedWriteTime = -1
BugcheckAbort = 1
2021-04-26 20:02:48 +02:00
3. Use pytest to run tests.
2022-02-24 19:21:45 +01:00
The plugin adds next options to pytest::
2021-04-26 20:02:48 +02:00
Firebird server:
2022-02-24 19:21:45 +01:00
--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 test std[out|err] output to files
--skip-deselected={platform,version,any}
SKIP tests instead deselection
--extend-xml Extend XML JUnit report with additional information
--install-terminal Use our own terminal reporter
2021-04-26 20:02:48 +02:00
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.
2022-02-24 19:21:45 +01:00
.. _QA suite documanetation: https://firebird-qa.readthedocs.io