http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/test/conftest.py Mercurial Repository: p/roundup/code: test/conftest.py history 2025-01-09T09:32:10-05:00 doc: known issues with possible dependent tests http://hg.code.sf.net:8000/p/roundup/code/#changeset-43dc610bbd246cd8b0003e6a8ed2a340752d274e John Rouillard rouilj@ieee.org 2025-01-09T09:32:10-05:00 2025-01-09T09:32:10-05:00
changeset 43dc610bbd24
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description doc: known issues with possible dependent tests

When reversing the testing order, two blocks of tests fail. Document
these.

I spent time trying to fix them, but got nowhere. Obviously I am
missing something. But this doc gives future me or somebody else a
starting point.
files
test: try to handle loss of testmon data when cancelling test. http://hg.code.sf.net:8000/p/roundup/code/#changeset-619b723dd2bba0723bec0561615e8e5251e8d35c John Rouillard rouilj@ieee.org 2025-01-01T00:54:58-05:00 2025-01-01T00:54:58-05:00
changeset 619b723dd2bb
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description test: try to handle loss of testmon data when cancelling test.

Not sure if this works, but I was having an issue where the testmon
database was not being saved properly. When I used ^C to cancel a run,
the next run with --testmon would select no tests even when I changed
files.

The only was to get working again was to delete the .testmon,
.testmon-wal and .testmon-shm files and rerun the whole test suite.
Once the full test suite was run, changing the file would select tests
again.
files
feat: issue2550852 - support using a specified PostgreSQL db schema http://hg.code.sf.net:8000/p/roundup/code/#changeset-3071db43bfb6d957b2dab43ae0f9df0e98f86002 John Rouillard rouilj@ieee.org 2023-12-27T22:52:14-05:00 2023-12-27T22:52:14-05:00
changeset 3071db43bfb6
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description feat: issue2550852 - support using a specified PostgreSQL db schema

Finally after 7 years this is closed.

roundup/backends/back_postgresql.py:
Support use of schema when specified in RDBMS_NAME. Stuart McGraws
code is finally merged 8-).

test/test_postgresql.py, test/conftest.py:
Run all postgresql tests in the schema db as well.
Also make sure that db_nuke raises an error when trying to delete
the schema test database. Conftest defines pg_schema mark that can
be used to exclude schema tests with pytest -m "not pg_schema".

roundup/configuration.py:
change doc on RDBMS_NAME to include db.schema form.

.travis.yml, .github/workflows/ci-test.yml:
create schema test db; add user for testing with schema; grant new
user create privs for schema.

doc/installation.txt:
Reference to roundup-admin init deleting schema added.

doc/mysql.txt doc/postgresql.txt:
New documentation on psql/mysql commands to set up a production db.

doc/upgrading.txt:
mention schema support, also document service setting for
selecting connection from pg_service.conf.

doc/reference.txt:
update config.ini documentation for RDBMS_NAME.
files