All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Fixture
existing_db_factory
to directly use database fromdatabases
subdirectory. It's not intended for use in Firebird QA, but it's necessary for other plugin users.
- Report test error also in cases when unexpected stderr is returned from tool execution
while
returncode
is zero. - Select test marked for current platform also when it's not marked for Firebird version.
- Problem with ndiff in assert
- Remove fix for #21. The error was not caused by pytest 8.0, but by
Error
exception fromfirebird-base
package that masked the absence of__notes__
attribute frompytest
. Dependency to pytest reverted to>=7.4
.
- Updated documentation.
- Fix for #21. Dependency to pytest changed from
>=8.0.0
to~=7.4
. Other dependecies changed from>=
to~=
.
- Switch from
setuptools
tohatch
. - Updated dependencies.
-
Added cache for empty databases. This works transparently and does not require any special configuration. Databases are stored in
dbcache
subdirectory (created automatically) for combination of ODS + page size + SQL dialect + character set.Files in
dbcache
directory could be removed as needed (including whole directory) to fore creation of new database.Cache is enabled by default. Use new --disable-db-cache option to disable it.
- Added
--driver-config
option to specify different filename for driver configuration.
- Trace session support in plugin now uses service query with timeout (provided by
firebird-driver 1.8.0
) and terminates the trace thread gracefuly even if terminating trace session fails.
- When database initialization script fails, the XML output is extended with
dbinit-stderr
property that containsstderr
output with errors reported by ISQL.
- Uregistered bug in trace.TraceConfig - redundant
flags
definition.
- Added
Mapping
andmapping_factory
.
- Variable
test_cfg
renamed toQA_GLOBALS
.
- Added support for configuration of tests. A
configparser.ConfigParser
instance is available astest_cfg
. This instance is initialized with values from filetest_config.ini
located infiles
subdirectory.
- Fix problem with database init script. Now it uses the database charset instead default UTF8. The UTF8 is used only when database charset is not specified.
- Added
encryption
marker to mark test as requiring the encryption plugin
- Package
psutil
is now a dependency, installed automatically with plugin.
-
Added possibility to use databases aliases. The
db_factory()
parameterfilename
is now handled as database alias if it starts with#
, for example#employee
means aliasemployee
. The alias must be defined indatabases.conf
file.When filename is an alias, the
Database.db_path
property does not contain fullpathlib.Path
to the database, but this database alias.
-
To simplify portable use of databases with special configuration via
databases.conf
, the plugin initialization now ensures empty subdirectoryQA
in Firebird sample directory. To define your test databases indatabases.conf
, use next pattern:my_db = $(dir_sampleDB)/QA/my-db.fdb { ... }
On plugin initialization, the
QA
sub-directory is first emptied and removed, and then newly created. On non-Windows, full privileges are granted.
- Added possibility to specify user, password and role in
Action.connect_server()
and.Action.trace()
- DataList is now generic class.
- DataList.extract() has new 'copy' argument.
- Fixed problem with service encoding
- Fixed problem with tags in User
- Explicit
Optional
typing. - Added support for both
encoding
andencoding_errors
inAction.connect_server()
andAction.trace()
.
Initial release.