Florian Bruhin
a024c14dd6
tox: Add smoke test to the default envlist.
2015-06-16 07:37:08 +02:00
Florian Bruhin
b43d8b13d8
tox: Update mccabe to 0.3.1.
...
Upstream changelog:
- Include test_mccabe.py in releases.
- Always coerce the max_complexity value from Flake8's entry-point to an integer.
2015-06-15 06:21:14 +02:00
Florian Bruhin
8dc9f0562a
tox: Update pyroma to 1.8.2.
...
Upstream changelog:
Do not complain that the version number should be a string, when it is a
basestring. [maurits]
2015-06-14 13:45:09 +02:00
Florian Bruhin
219c2f8ae8
Ignore "Unable to set geometry" warnings in tests.
...
This reverts commits 9b066ec50a
and
83f7cf84a9
.
This was still broken even after setting the geometry:
https://ci.appveyor.com/project/The-Compiler/qutebrowser
2015-06-12 17:04:12 +02:00
Florian Bruhin
5a8b7910e0
tox: Use python -m to start pylint.
...
This makes it also work on Windows, where bin/ is called Scripts/.
2015-06-10 18:35:33 +02:00
Florian Bruhin
67473c6db1
tox: Add PYTHON to passenv.
2015-06-10 18:35:33 +02:00
Florian Bruhin
67e895b6c7
Hide SetProcessDpiAwareness Qt warning.
...
This shows up on AppVeyor CI for some reason.
See https://bugreports.qt.io/browse/QTBUG-38993
2015-06-10 18:35:33 +02:00
Florian Bruhin
645a1512dd
tox: Update pyflakes to 0.9.1.
2015-06-10 06:10:12 +02:00
Florian Bruhin
4532176e7b
Don't use substitutions in tox.ini.
...
These seem to break things on Ubuntu Trusty...
2015-06-09 19:12:19 +02:00
Florian Bruhin
d887623377
Make tests fail on unexpected Qt messages.
2015-06-07 02:34:19 +02:00
Florian Bruhin
a0e5a3e8ee
tox: Update pytest-qt to 1.4.0.
...
Upstream changelog:
- Messages sent by qDebug, qWarning, qCritical are captured and displayed when
tests fail, similar to pytest-catchlog. Also, tests can be configured to
automatically fail if an unexpected message is generated. (See docs).
- New method waitSignals: will block untill all signals given are triggered, see
docs (thanks @The-Compiler for idea and complete PR).
- New parameter raising to waitSignals and waitSignals: when True (defaults to
False) will raise a qtbot.SignalTimeoutError exception when timeout is reached,
see docs (thanks again to @The-Compiler for idea and complete PR).
- pytest-qt now requires pytest version >= 2.7.
Internal changes to improve memory management
- QApplication.exit() is no longer called at the end of the test session and
the QApplication instance is not garbage collected anymore;
- QtBot no longer receives a QApplication as a parameter in the constructor,
always referencing QApplication.instance() now; this avoids keeping an extra
reference in the qtbot instances.
- deleteLater is called on widgets added in QtBot.addWidget at the end of each
test;
- QApplication.processEvents() is called at the end of each test to make sure
widgets are cleaned up;
2015-06-07 01:24:02 +02:00
Florian Bruhin
fd75f77108
Fix spell checker to check all files.
2015-06-07 01:24:02 +02:00
Florian Bruhin
d3f7d9319a
tox: Update py to 1.4.28.
...
Upstream changelog:
- fix issue64 -- dirpath regression when "abs=True" is passed. Thanks Gilles
Dartiguelongue.
2015-06-05 17:29:00 +02:00
Florian Bruhin
6ec8bbaca5
tox: Update pytest-mock to 0.6.0.
...
Upstream changelog:
- Two new auxiliary methods, spy and stub.
2015-06-05 17:27:59 +02:00
Florian Bruhin
e38169433e
tox: Update pytest-flakes to 1.0.0.
...
Upstream changelog:
- Fix issue #6 - support PEP263 for source file encoding.
- Clarified license to be MIT like pytest-pep8 from which this is derived.
2015-06-05 17:26:49 +02:00
Florian Bruhin
4a909aa028
Use pylint's built-in checker to check for CRLF.
2015-06-04 15:25:36 +02:00
Florian Bruhin
36803cba06
Switch from flake8 to pytest-{mccabe,flakes,pep8}.
2015-06-02 20:51:06 +02:00
Florian Bruhin
534dbfc4c2
tox: Update check-manifest to 0.25.
...
Upstream changelog:
Stop dynamic computation of install_requires in setup.py: this doesn't work
well in the presence of the pip 7 wheel cache. Use PEP-426 environment
markers instead (this means we now require setuptools version 0.7 or
newer).
2015-05-27 08:51:24 +02:00
Florian Bruhin
6f3fa9dca6
tox: Show more information when testing.
2015-05-27 07:51:53 +02:00
Florian Bruhin
a969fe021d
tox: Install requirements.txt for tests.
2015-05-27 07:45:21 +02:00
Florian Bruhin
92abf4bdf8
tox: Update pytest-html to 1.3.1.
...
Upstream changelog:
1.3.1:
Fix encoding issue in Python 3
1.3:
Bump version number to 1.3
Simplify example in README
Show extra content in report regardless of test result
Support extra content in JSON format
2015-05-26 19:25:45 +02:00
Florian Bruhin
0252f5fdbf
tox: Update pytest-html to 1.2.
2015-05-20 13:37:44 +02:00
Florian Bruhin
daaf7a62c8
tox: Update pytest to 2.7.1.
2015-05-19 12:38:13 +02:00
Florian Bruhin
5ef40829aa
tox: Pass $USERNAME and $USER for smoke env.
...
This fixes getpass.getuser() on Windows for the smoke tests.
2015-05-17 18:14:21 +02:00
Florian Bruhin
f17238d3d4
tox: Set QT_QPA_PLATFORM_PLUGIN_PATH for smoke.
...
This fixes smoke tests on Windows (I think).
2015-05-17 01:19:23 +02:00
Florian Bruhin
b5dc4ea040
tox: Use absolute path for -rrequirements.txt.
...
This fixes a FileNotFoundError on Ubuntu Trusty.
2015-05-17 01:18:19 +02:00
Florian Bruhin
f54c416ddd
tox: Fixes for smoke environment.
2015-05-17 01:07:36 +02:00
Florian Bruhin
3f98bf372e
Merge branch 'smoke'
...
Conflicts:
doc/qutebrowser.1.asciidoc
qutebrowser/app.py
qutebrowser/config/config.py
qutebrowser/qutebrowser.py
tox.ini
2015-05-17 00:28:56 +02:00
Florian Bruhin
9be5992a9a
Smoke test WIP
2015-05-16 23:43:34 +02:00
Florian Bruhin
4dbc4ba93f
tox: Fix QT_QPA_PLATFORM_PLUGIN_PATH.
...
See 677cfc9410
.
2015-05-16 14:22:56 +02:00
Florian Bruhin
dd83a40df4
tox: Set passenv for tox 2.0.
2015-05-16 14:13:24 +02:00
Florian Bruhin
677cfc9410
tox: envsitespackagedir workaround for tox 2.0.1.
2015-05-16 14:12:33 +02:00
Florian Bruhin
18eace37f8
tox: Add pytest-html.
2015-05-10 21:47:05 +02:00
Florian Bruhin
ad822b72c7
tox: Update py to 1.27.
...
Upstream changelog:
- fix issue59: point to new repo site
- allow a new ensuresyspath="append" mode for py.path.local.pyimport()
so that a neccessary import path is appended instead of prepended to
sys.path
- strike undocumented, untested argument to py.path.local.pypkgpath
- speed up py.path.local.dirpath by a factor of 10
2015-05-07 14:50:32 +02:00
Florian Bruhin
530fe5e933
tox.ini: Update pytest-mock to 0.5.
...
Changelog:
Mock and Magic mock are now accessible from the mocker fixture.
2015-05-04 07:47:58 +02:00
Florian Bruhin
1903792239
tox: Update pyroma to 1.8.1.
...
Changelog:
- More robust rating. [Jeff Quast]
- Closed #24 . ("pyroma some_pypi_package" fails)
2015-04-27 13:07:57 +02:00
Florian Bruhin
8edfa4281e
Revert "tox.ini: Use pytest-qt from git."
...
This reverts commit 71608af486
.
2015-04-24 17:34:10 +02:00
Florian Bruhin
71608af486
tox.ini: Use pytest-qt from git.
...
See https://github.com/pytest-dev/pytest-qt/pull/38 .
2015-04-22 18:12:03 +02:00
Florian Bruhin
1b13b0c385
Add --strict to pytest invocation.
2015-04-20 18:02:59 +02:00
Florian Bruhin
c098d0de37
Register the gui marker in tox.ini.
2015-04-20 18:02:04 +02:00
Florian Bruhin
9111ae7b3c
tox: Update pytest-mock to 0.4.3.
...
Upstream changelog:
- mocker and the backward compatible mock fixture now return the same object.
2015-04-09 13:19:39 +02:00
Florian Bruhin
76651822bd
Merge pull request #16 from hackebrot/layout
...
Adopt test layout to pytest.
2015-04-08 14:03:02 +02:00
Bruno Oliveira
abc2c2b087
Remove spurious dependencies from tox.ini as pointed out by @The-Compiler
2015-04-08 01:06:31 -03:00
Florian Bruhin
9d44f777c0
Fix lint.
2015-04-05 20:30:31 +02:00
Florian Bruhin
d3a92d505c
Make lints run with adjusted test folder location.
...
For pylint we need a custom script; see
https://bitbucket.org/logilab/pylint/issue/512/
2015-04-05 18:45:48 +02:00
Florian Bruhin
ce0b9eab58
tox: Make it possible to pass args to pytest.
2015-04-05 15:39:05 +02:00
Bruno Oliveira
4fa2294805
Merge remote-tracking branch 'origin/master' into layout
...
Conflicts:
qutebrowser/test/keyinput/test_basekeyparser.py
qutebrowser/test/utils/test_standarddir.py
test/browser/http/test_content_disposition.py
test/config/test_configtypes.py
test/misc/test_editor.py
test/utils/test_debug.py
test/utils/test_utils.py
tox.ini
2015-04-04 14:29:49 -03:00
Bruno Oliveira
99abd1edeb
Adding pytest-mock to tox
2015-04-03 20:17:52 -03:00
Raphael Pierzina
58a8a7e992
Introduce pytest plugin capturelog and convert test_log_time
2015-04-03 20:10:41 +02:00
Bruno Oliveira
751b62e344
Moving logging and QApplication to conftest
...
As discussed in #8
2015-04-02 19:09:06 -03:00