Thomas Hisch
18cc74b8d0
Remove useless comment
2018-09-19 15:18:37 +02:00
Thomas Hisch
048342817b
Add testcase for logging to file
2018-09-18 21:47:42 +02:00
Thomas Hisch
d1a3aa7b2b
Update 3964.rst
2018-09-18 21:31:20 +02:00
Thomas Hisch
e967d4587a
Add support for logging in collection-phase
...
The logging plugin does not output log messages generated during the
collection-phase when live-logging is enabled. This fixes this.
Fixes #3964
2018-09-18 20:18:24 +02:00
Bruno Oliveira
a79dc12f1e
Merge pull request #3970 from sambarluc/raise_on_empty_parameterset
...
Raise exception if parametrize collects an empty parameter set
2018-09-18 08:11:34 -03:00
Andrea Cimatoribus
913c07e414
Add changelog file and new author
2018-09-15 09:18:03 +02:00
Andrea Cimatoribus
4a9f468aac
Update documentation
2018-09-15 09:18:03 +02:00
Andrea Cimatoribus
05155e4db0
Fail at parametrize option for empty parameter set
...
Optionally raise an exception when parametrize collects no arguments.
Provide the name of the test causing the failure in the exception
message.
See: #3849
2018-09-15 09:18:03 +02:00
Ronny Pfannschmidt
bceaede198
Merge pull request #3978 from nicoddemus/warn-yield-and-compat-properties
...
Actually deprecate long standing features
2018-09-15 07:19:59 +02:00
Bruno Oliveira
ae8f3695b5
Move UnformattedWarning to _pytest.warning_types
2018-09-14 15:31:20 -03:00
Bruno Oliveira
da6830f19b
Introduce UnformattedWarning to keep warning types and messages in _pytest.deprecated
2018-09-14 14:49:05 -03:00
Bruno Oliveira
32ee0b9c88
Move warning messages to _pytest.deprecated
2018-09-13 15:56:50 -03:00
Bruno Oliveira
feb8240410
Use self.Function again during collection
2018-09-13 15:44:02 -03:00
Bruno Oliveira
b7dd9154c3
Deprecate custom node types during collection by using special names
2018-09-13 14:55:28 -03:00
Bruno Oliveira
482bd5efd2
Show deprecation warning for cached_setup
2018-09-13 14:25:46 -03:00
Bruno Oliveira
bf074b37a3
Show deprecation warnings for compat properties
...
Fix #3616
2018-09-13 14:10:30 -03:00
Bruno Oliveira
495a55725b
Separate deprecations and removals in the CHANGELOG
2018-09-13 14:02:01 -03:00
Bruno Oliveira
53c9124fc9
Merge pull request #3947 from nicoddemus/warnings-filter-precedence
...
-W now takes precedence over filters in ini files
2018-09-13 13:23:00 -03:00
Bruno Oliveira
ab40696007
-W now takes precedence over filters in ini files
...
Fix #3946
2018-09-11 19:00:42 +02:00
Ronny Pfannschmidt
d12f46caef
Merge pull request #3949 from nicoddemus/merge-master-into-features
...
Merge master into features
2018-09-07 07:58:36 +02:00
Bruno Oliveira
c00d934b21
Merge pull request #3933 from nicoddemus/idval-hypothesis-flaky-3707
...
Use -n auto now that xdist behaves well in Travis and AppVeyor
2018-09-06 15:15:55 -03:00
Bruno Oliveira
6b526cbe6a
Merge pull request #3943 from nicoddemus/no-coverage-on-deploy
...
Disable coverage during deployment stage
2018-09-06 15:15:32 -03:00
Bruno Oliveira
e0539e6ede
Merge pull request #3942 from nicoddemus/merge-features-into-master
...
Merge features into master
2018-09-06 09:35:28 -03:00
Bruno Oliveira
5eb85efa14
Use -n auto now that xdist behaves well in Travis and AppVeyor
...
This hopefully fixes the flaky test_idval_hypothesis on AppVeyor
Fix #3707
2018-09-06 09:22:13 -03:00
Bruno Oliveira
9ee8d72fd2
Disable coverage during deployment stage
...
Otherwise it will fail as there's no coverage data to combine/publish
2018-09-06 09:18:47 -03:00
Bruno Oliveira
8c4ca383ca
Merge remote-tracking branch 'upstream/features' into merge-features-into-master
2018-09-06 09:15:56 -03:00
Bruno Oliveira
f2a427da25
Merge pull request #3940 from nicoddemus/release-3.8.0
...
Release 3.8.0
2018-09-06 09:15:00 -03:00
Bruno Oliveira
e0466d0ad8
Merge pull request #3923 from nicoddemus/codecov
...
Add support for codecov in AppVeyor
2018-09-06 07:02:56 -03:00
Bruno Oliveira
418a66a09f
Replace coveralls' badge by codecov's
2018-09-05 22:37:32 -03:00
Bruno Oliveira
5e2bd17d18
White list external "env" used by Travis for coverage
2018-09-05 22:37:32 -03:00
Bruno Oliveira
ec6fca4aa7
Add codecov support to AppVeyor and remove coveralls
2018-09-05 19:50:06 -03:00
Bruno Oliveira
1f20626618
Preparing release version 3.8.0
2018-09-05 21:06:32 +00:00
Bruno Oliveira
69b34f7658
Merge remote-tracking branch 'upstream/master' into release-3.8.0
2018-09-05 18:02:02 -03:00
Bruno Oliveira
531b76a513
Merge pull request #3931 from nicoddemus/internal-warnings
...
Use standard warnings for internal pytest warnings
2018-09-05 14:05:52 -03:00
Bruno Oliveira
f63c683faa
No longer escape regex in pytest.mark.filterwarnings
...
Fix #3936
2018-09-05 10:20:25 -03:00
Ronny Pfannschmidt
410d5762c0
Merge pull request #3919 from fabioz/master
...
Improve import performance of assertion rewrite. Fixes #3918 .
2018-09-05 14:33:40 +02:00
Bruno Oliveira
ddb308455a
Make sure warn is called in test_parameterset_extractfrom
2018-09-05 09:01:29 -03:00
Bruno Oliveira
f42b5019ec
Make code_or_warning parameter private for backward-compatibility
2018-09-04 18:53:58 -03:00
Bruno Oliveira
adc9ed85bc
Fix test_idval_hypothesis
2018-09-04 18:49:20 -03:00
Bruno Oliveira
4592def14d
Improve test_rewarn_functional
2018-09-04 17:02:56 -03:00
Bruno Oliveira
2e0a7cf78d
Revert to having just "runtest" as "when" parameter of the pytest_warning_captured hook
2018-09-04 17:01:23 -03:00
Bruno Oliveira
5a52acaa92
Make config no longer optional in parametrize id functions
2018-09-04 16:55:52 -03:00
Bruno Oliveira
6d497f2c77
Fix stacklevel for warning about Metafunc.addcall
2018-09-04 16:50:24 -03:00
Bruno Oliveira
b7560a8808
Keep backward compatibility for code as kw in Node.warn
2018-09-04 16:48:21 -03:00
Bruno Oliveira
d3ca739c00
Use explicit instances when calling warnings.warn_explicit
2018-09-04 16:29:48 -03:00
Bruno Oliveira
3db76ccf3d
Fix Cache.warn function to issue a "config" warning
2018-09-04 15:53:17 -03:00
Bruno Oliveira
438f7a1254
Add "setup", "call" and "teardown" values to "when" parameter of pytest_warning_captured hook
2018-09-04 15:53:17 -03:00
Bruno Oliveira
47bf58d69e
Make Node.warn support two forms, new and deprecated
...
As suggested during review, it now accepts two forms:
Node.warn(warning_instance) (recommended)
Node.warn(code, message) (deprecated)
2018-09-04 15:53:17 -03:00
Bruno Oliveira
5ef51262f7
Fix reference to PytestWarning in warningsfilter mark
2018-09-04 15:06:14 -03:00
Bruno Oliveira
a054aa4797
Issue assert rewrite warning if tuple >=1 as suggested in review
2018-09-04 14:45:48 -03:00