Skip to content

Commit 2174b74

Browse files
Merge pull request #11 from davidwaroquiers/release_1_0_1
Release version 1.1.0
2 parents 8c958b3 + ddec18e commit 2174b74

File tree

435 files changed

+69372
-806
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

435 files changed

+69372
-806
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,6 @@ dmypy.json
129129

130130
# JetBrain's Pycharm
131131
.idea/
132+
133+
# Dry-run comparison files
134+
dryrun_itest.json

CHANGELOG

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# The turbomoleio package, a python interface to Turbomole
2+
# for preparing inputs, parsing outputs and other related tools.
3+
# Copyright (C) 2018-2021 BASF SE, Matgenix SRL.
4+
#
5+
# This file is part of turbomoleio.
6+
#
7+
# Turbomoleio is free software: you can redistribute it and/or modify
8+
# it under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation, either version 3 of the License, or
10+
# (at your option) any later version.
11+
#
12+
# Turbomoleio is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU General Public License
18+
# along with turbomoleio (see ~turbomoleio/COPYING). If not,
19+
# see <https://www.gnu.org/licenses/>.
20+
21+
+--------------------------+
22+
| CHANGELOG OF TURBOMOLEIO |
23+
+--------------------------+
24+
25+
Please refer to the official website : https://matgenix.github.io/turbomoleio/changelog.html,
26+
or the file ~turbomoleio/docs_rst/changelog.rst.
27+
28+
Please report issues or comments in https://github.com/Matgenix/turbomoleio/issues.

conftest.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
TESTDIR = os.path.join(os.path.split(__file__)[0],
1010
'turbomoleio',
1111
'testfiles')
12+
DRYRUN_FPATH = os.path.join(os.path.split(__file__)[0],
13+
'dryrun_itest.json')
1214

1315

1416
@pytest.fixture(autouse=True, scope='session')
@@ -54,8 +56,20 @@ def pytest_configure(config):
5456
from turbomoleio.testfiles.utils import ItestConfig
5557
ItestConfig.define_timeout = config.getoption("--define-timeout")
5658
ItestConfig.generate_ref = config.getoption("--generate-itest-ref")
59+
ItestConfig.dryrun = config.getoption("--dryrun-itest")
60+
dryrun_fpath = config.getoption("--dryrun-fpath")
61+
ItestConfig.dryrun_fpath = os.path.join(
62+
os.path.split(__file__)[0],
63+
dryrun_fpath
64+
)
65+
ItestConfig.dryrun_use_ref_control = config.getoption("--dryrun-use-reference-control")
5766
ItestConfig.tol = config.getoption("--itest-tol")
5867
ItestConfig.delete_tmp_dir = not config.getoption("--keep-tmpdir")
68+
# When running in dry mode, only the integration tests should be run and
69+
# there should not be any failures.
70+
if ItestConfig.dryrun:
71+
config.option.markexpr = 'integration'
72+
config.option.maxfail = 1
5973

6074

6175
def pytest_addoption(parser):
@@ -70,6 +84,17 @@ def pytest_addoption(parser):
7084
help="The output control file generated during the integration tests will be copied to the "
7185
"reference folder. N.B. this will overwrite previously existing files.")
7286

87+
parser.addoption("--dryrun-itest", action="store_true", default=False,
88+
help="The files generated during the integration tests will be compared against "
89+
"reference files. A list of all differences will be provided in a file.")
90+
91+
parser.addoption("--dryrun-use-reference-control", action="store_true", default=False,
92+
help="Use the reference control file for integration tests instead of the one generated using "
93+
"define. The control file is still generated and compared.")
94+
95+
parser.addoption("--dryrun-fpath", default=DRYRUN_FPATH, type=str,
96+
help="Filepath for the results of the differences of the dryrun.")
97+
7398
parser.addoption("--itest-tol", default=1e-4, type=float,
7499
help="The absolute tolerance used in the integration test to match floating point"
75100
"numbers when comparing to reference files.")

0 commit comments

Comments
 (0)