Ronny Pfannschmidt
b3c337db00
add changelog entry and documentation note about RecordedWarning
2016-10-24 15:28:35 +02:00
Bruno Oliveira
918af99a2a
Remove example of obsolete pytest.main usage with string
2016-10-20 12:30:58 -02:00
Ronny Pfannschmidt
afc1e2b0e1
docs: remove mention of string args to main
...
fixes #2008
string args got deprecated due to the insane amount of edge-cases wrt splitting on windows vs posix
2016-10-18 17:21:40 +02:00
Grigorii Eremeev
65ebc75ee8
Update fixture.rst
...
Removed redundant word
2016-10-05 22:26:13 +03:00
Bruno Oliveira
50b960c1f0
Add note about not monkey-patching builtins ( #1986 )
...
* Add note about not monkey-patching builtins
Related to #1985
* Mention -s as well
2016-10-05 17:57:40 +02:00
Bruno Oliveira
ba6ecc14c8
Include release-3.0.3 into the announce toctree
2016-09-28 17:16:57 -04:00
Bruno Oliveira
41d3b3f4f9
Regendoc for version 3.0.3
2016-09-28 16:36:15 -04:00
Bruno Oliveira
dda17994ec
Prepare for 3.0.3 release
2016-09-28 16:33:38 -04:00
Skylar Downes
3d211da9bd
add existing test suite page to table of contents
2016-09-27 14:01:54 -07:00
Skylar Downes
12ac3c7338
remove existing tests stuff, add link to new page
...
Moved the "Contributing tests to an existing project" section to it's own page.
2016-09-27 13:08:15 -07:00
Skylar Downes
7e2f66adc3
Create existingtestsuite.rst
2016-09-27 12:51:46 -07:00
Bruno Oliveira
19766ef0bc
Add a summary on how to skip all tests in a module in different situations
2016-09-25 23:36:25 -03:00
Bruno Oliveira
94155ee62a
Add a note about pytest.skip not being allowed at module level
2016-09-25 23:36:25 -03:00
mbyt
77d842ceb2
better doc for #1890 based on #1932
2016-09-17 19:58:27 +02:00
Skylar Downes
34117be98b
Update goodpractices.rst
2016-09-15 16:45:35 -07:00
Skylar Downes
330a2f6784
Update getting-started.rst
2016-09-15 16:28:37 -07:00
Skylar Downes
81a733f2dc
add how-to for getting started on existing project
...
ref #1937
2016-09-15 15:09:47 -07:00
Skylar Downes
07ad71e851
clarified purpose of `pip install -e` command
...
ref #1937
2016-09-15 14:55:54 -07:00
Skylar Downes
b4fd74c6ff
add mention of setup.py develop
2016-09-15 14:10:57 -07:00
Skylar Downes
69f72c6f4b
fix typo
2016-09-15 10:49:59 -07:00
Skylar Downes
383fc02ba6
fix spacing
2016-09-15 10:47:16 -07:00
Skylar Downes
d217984129
documenting how to point pytest at local code
...
Related to #1937
2016-09-15 10:46:15 -07:00
Bruno Oliveira
138e255631
Remove duplicated for Metafunc members on docs
...
Fix #1924
2016-09-14 17:11:58 -03:00
Florian Bruhin
8e67dd13e7
Fix link to PDF docs
...
Fixes #1917
2016-09-06 21:17:54 +02:00
Ronny Pfannschmidt
a2b8981b50
docs: remove unused helper script
2016-09-05 21:03:22 +02:00
Ronny Pfannschmidt
e21ae3991d
docs: remove the need for special scripts
...
* import version from pytest since it is importable
* remove makefile bits from legacy hosting
* remove the script to determine the version for legacy hosting
2016-09-05 16:42:33 +02:00
Bruno Oliveira
183f3737d4
Fix reference docs for monkeypatch
...
Fix #1909
2016-09-03 15:47:54 -03:00
Bruno Oliveira
927f411ee2
Fix release 3.0.2 release announcement list of authors
2016-09-01 21:28:30 -03:00
Bruno Oliveira
a9f3053f72
Fix version typo in announce for 3.0.2
2016-09-01 06:59:31 -04:00
Bruno Oliveira
d512e7f26b
Run regendoc for 3.0.2 release
2016-08-31 20:32:05 -04:00
Bruno Oliveira
f985f47a02
Fix reportingdemo call to pytest
2016-08-31 20:30:06 -04:00
Bruno Oliveira
4c45b93007
Changes for 3.0.2 release
2016-08-31 20:28:38 -04:00
mbyt
e43d1174f7
spelling
2016-08-31 22:46:40 +02:00
mbyt
696a9112be
integrating review commets of @nicoddemus
...
plus small scale refactoring
2016-08-31 22:33:47 +02:00
Bruno Oliveira
519f02b014
docs warnings as errors and initial page similar to README
...
* Changed "index" to be more similar to the README (#1708 ).
* Fixes numerous issues like missing documents, syntax errors, etc (#1829 , #432 ).
* Mention all docs in "contents.rst" so it's easier for users to locate (#1112 ).
* Add doc generation and checking to Travis and AppVeyor, to avoid re-introducing errors.
Fixes #432 , Fixes #1112 , Fixes #1708 , Fixes #1829
2016-08-26 17:47:18 -03:00
Bruno Oliveira
e92d373460
Remove example of "monkeypatch" used in session scope
...
This is a leftover when invocation-scoped fixtures
were pulled back.
Fix #1872
2016-08-25 21:50:57 -03:00
Bruno Oliveira
49fc4e5e4c
Changes for 3.0.1 release
2016-08-23 18:15:43 -04:00
Adam Chainz
1673667232
Delete unreferenced setup.cfg from docs
...
Noticed it's not using the new `[tool:pytest]` header as changed in #567 , can't find any reference to it or `testfilepatterns`. It was added in b1e4301457
6 years ago, there don't seem to have ever been references to it.
2016-08-23 16:08:24 +01:00
Dmitry Dygalo
3fbf2e7a80
Fix documentation
2016-08-22 18:38:02 +02:00
Daniel Hahler
e306a53999
Fix spelling: s/outside a/outside of a/
2016-08-20 18:43:39 +02:00
Bruno Oliveira
9aec8d9a47
py.test team -> Pytest team :)
2016-08-19 18:59:13 -03:00
Bruno Oliveira
c8f53d6690
Fix typo in 3.0.0 release announcement
2016-08-19 18:58:14 -03:00
Bruno Oliveira
875bcd4224
Add 3.0.0 release announcement to index.rst
2016-08-19 18:30:11 -03:00
Bruno Oliveira
745c8c17f1
Merge remote-tracking branch 'upstream/master'
2016-08-19 17:38:21 -03:00
matthiasha
c8fbf3ae34
remove dot in pytest
2016-08-19 14:02:25 +02:00
matthiasha
799dab9dba
Documentation update for rootdir discovery
...
This covers issue https://github.com/pytest-dev/pytest/issues/1435 .
2016-08-19 09:01:12 +02:00
Bruno Oliveira
c74ce371ab
Add release announcement
2016-08-18 12:02:01 -04:00
Bruno Oliveira
9ce30e0085
Run regendoc for 3.0 release
2016-08-18 08:27:16 -04:00
Florian Bruhin
789e4670e7
Merge pull request #1813 from nicoddemus/pytest-setup.cfg
...
Support [tool:pytest] in setup.cfg files
2016-08-17 20:33:57 +02:00
Florian Bruhin
c8ab79402c
Merge pull request #1811 from nicoddemus/revert-invocation-fixtures
...
Revert invocation-fixtures code
2016-08-17 20:32:54 +02:00
Bruno Oliveira
ab86dea529
Support [tool:pytest] in setup.cfg files
...
Also deprecate [pytest] usage in setup.cfg files
Fix #567
2016-08-17 08:19:38 -03:00
Bruno Oliveira
707b6b5e3f
Revert all invocation-fixtures code
...
Due to a serious regression found in #1794 , it was decided to pull off
invocation features from 3.0 so it can be (hopefully) re-introduced
in 3.1
2016-08-17 08:12:55 -03:00
Bruno Oliveira
f25771a101
Deprecate --resultlog cmdline option
...
Fix #830
2016-08-16 21:40:34 -03:00
Floris Bruynooghe
99a4a1a784
Merge pull request #1791 from nicoddemus/ide-integration-1790
...
Internal adjustments for easier integration with IDEs
2016-08-07 23:50:50 +01:00
Bruno Oliveira
802755ceed
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2016-08-06 17:58:17 -03:00
Dave Hunt
eb08135280
Update documentation to describe expected rootdir behaviour
2016-08-06 19:35:40 +02:00
Bruno Oliveira
08002ab75a
Add longreprtext property to TestReport objects
...
Related to #1790
2016-08-03 21:49:28 -03:00
Bruno Oliveira
8b8c698f1a
Add more interpreter versions to multipython example
2016-08-03 16:48:49 -04:00
Bruno Oliveira
d28801d794
Make parametrize example deterministic
2016-08-03 16:48:11 -04:00
Bruno Oliveira
72df32f1fd
Fix missing print()
2016-08-03 17:34:55 -03:00
Bruno Oliveira
701d5fc727
Regendoc after more fixes on features branch
2016-08-03 16:31:44 -04:00
Bruno Oliveira
21a90c8c50
Run regendoc again
2016-08-01 20:12:00 -04:00
Bruno Oliveira
eed21e06db
Sort yml items to get same results for regendoc runs
2016-08-01 20:09:35 -04:00
Bruno Oliveira
a6b2732507
Pass list of params to pytest.main() in docs
2016-08-01 20:09:35 -04:00
Bruno Oliveira
946466abf4
Run regen-docs for pytest 3.0
2016-08-01 20:09:35 -04:00
Florian Bruhin
ffb583ae91
Merge pull request #1773 from nicoddemus/fix-freeze
...
Use PyInstaller for freeze test env
2016-07-27 15:06:54 +02:00
Bruno Oliveira
ae9d3bf886
Freeze docs: PyInstaller hook and wording
...
As discussed during the review, suggest in general
to use PyInstaller and just mention pytest.freeze_includes()
in less detail on how to actually use it, because it varies
from tool to tool.
2016-07-27 09:15:40 -03:00
Bruno Oliveira
ed36d627e4
Use PyInstaller for freeze test env
...
cx_freeze doesn't seem to be very well supported in Python 3.5.
Using pyinstaller instead and rename environment to "freeze" which
is a more generic term for freezing python code into standalone
executables.
Fix #1769
2016-07-26 22:02:37 -03:00
Bruno Oliveira
0b8a91b858
Fix pdf links in the documentation
...
Fix #1436
2016-07-26 20:20:22 -03:00
Bruno Oliveira
c2864aba3d
Merge branch 'master' into merge-master
...
# Conflicts:
# AUTHORS
# CHANGELOG.rst
# _pytest/monkeypatch.py
# _pytest/python.py
2016-07-25 19:06:29 -03:00
Roberto Polli
ab6aef1d1f
feature: default behavior now is to ignore duplicate paths specified from the command line. Use --keep-duplicates to retain duplicate paths.
2016-07-25 12:41:58 +02:00
Romain Dorgueil
f8f690de64
adds the versionadded flag in docs ( #1749 )
2016-07-23 15:30:06 +02:00
Romain Dorgueil
fd8e019cc1
Choose the doctest output format in case of failure, still work in progress as a few checks fail (related to #1749 )
2016-07-23 14:40:46 +02:00
Bruno Oliveira
05f3422d7c
Make monkeypatch invocation-scoped
2016-07-20 22:05:49 -03:00
Bruno Oliveira
4f2bf965cb
Merge remote-tracking branch 'upstream/features' into invocation-scoped-fixtures
2016-07-20 21:16:27 -03:00
Bruno Oliveira
20f97c3041
Small documentation improvements
2016-07-20 20:22:28 -03:00
Oliver Bestwalter
58a8150bc5
add backwards compatibility policy
2016-07-17 21:14:16 +02:00
Floris Bruynooghe
0a53797fa3
Document the re-writing of plugins
2016-07-17 12:30:21 +01:00
Bruno Oliveira
ff8fb4950e
setup_* and teardown_* functions argument now optional
...
setup_module, setup_function and setup_method
extra argument are now optional and may be omitted.
Fix #1728
2016-07-14 23:41:40 -03:00
Bruno Oliveira
9007e16cdf
Document limitations for yield-tests in nose
...
Also add nose doc to the root toctree
Closes #1716
2016-07-14 08:20:01 -03:00
Bruno Oliveira
f827810fa8
Fix 2.10 -> 3.0 versions in docs
2016-07-12 21:02:40 -03:00
Bruno Oliveira
29289b472f
Add documentation for "invocation" scoped fixture
2016-07-09 16:51:25 -03:00
Ronny Pfannschmidt
b9a91dc112
merge from master to features
2016-07-06 11:51:48 +02:00
Bruno Oliveira
8d39ce17da
Fix links and removed 404 links from talks.rst
...
Fix #1696
2016-07-04 21:32:57 -03:00
Brandon W Maister
771c4539fa
Document the interaction of autouse scopes
...
I wouldn't have even attempted what I did to cause #1688 if this had
been there.
2016-06-29 16:52:13 -04:00
Ronny Pfannschmidt
2a43237527
docs: no longer include python 3.0-3.2 in the index page
2016-06-27 18:20:56 +02:00
Eli Boyarski
21d27784eb
catched -> caught
...
Even though catch is a Python keyword, 'catched' just looks terrible in text.
If the text was supposed to reference the keyword, then 'catched' should be changed to "'catch'ed".
2016-06-27 15:41:40 +03:00
RedBeardCode
0e2ebc96ff
Remove deprecated cmd options
...
Fixes #1657
2016-06-26 19:26:04 +02:00
holger krekel
13a188fe37
Merge pull request #1647 from sallner/features
...
Add new options to report fixture setup and teardown
2016-06-25 16:38:37 +02:00
Raphael Pierzina
eb98a8eefb
Change version in issues section to pytest 3.0 only
2016-06-25 14:52:57 +02:00
Raphael Pierzina
acfdd85dff
Move document to proposals subfolder
2016-06-25 14:42:19 +02:00
Danielle Jenkins
7a3daac85b
Add docs for setuponly and setupplan options.
2016-06-25 12:21:12 +02:00
Raphael Pierzina
5860c609ae
Remove note on scoping
2016-06-25 11:09:46 +02:00
Raphael Pierzina
526c564576
Fix rst bullet point lists
2016-06-25 11:06:17 +02:00
Raphael Pierzina
693859210a
Add yielded values to function example
2016-06-25 11:00:54 +02:00
Raphael Pierzina
4f8b8c8d31
Add alternative approach that uses wrappers
2016-06-25 10:55:08 +02:00
Raphael Pierzina
c6a711c2fc
Add proposed solution using a module function
2016-06-25 10:50:14 +02:00
Raphael Pierzina
84f0dcecf8
Add issues section to proposal doc
2016-06-25 10:10:57 +02:00
Brianna Laugher
7612b650a0
update sprint page to be past tense
2016-06-24 17:24:06 +02:00
Brianna Laugher
62255d8000
rm global header
2016-06-24 17:12:41 +02:00
Brianna Laugher
ea5bda0898
remove links to funding campaign
2016-06-24 17:11:29 +02:00
Raphael Pierzina
dc55551213
Start proposal for parametrize with fixtures
2016-06-24 12:08:57 +02:00
Tom Viner
df9918eda3
issue1625, name getfuncargvalue to getfixturevalue
2016-06-24 10:08:19 +02:00
Ronny Pfannschmidt
18ef7de96b
merge from master again
2016-06-22 16:03:52 +02:00
HEAD KANGAROO
be1dabd6a9
cache.rst: Fix wrong command used
...
The "Inspecting Cache content" section was showing --cache-clear command,
but should actually be using --cache-show command.
Also; update AUTHORS
2016-06-22 14:04:02 +01:00
Ronny Pfannschmidt
083f64100d
merge master into features
2016-06-22 14:39:33 +02:00
Dave Hunt
ef9dd14963
Introduce pytest command as recommended entry point
...
Fixes #1629
2016-06-21 16:16:57 +02:00
Florian Bruhin
4f2db6c08d
Merge pull request #1616 from palaviv/pytest.raises-message
...
Pytest.raises custom error message
2016-06-20 18:43:12 +02:00
palaviv
f8d4cadc3d
Added versionchanged directives
2016-06-19 23:56:43 +03:00
palaviv
c29130d400
Updated documentation
2016-06-19 23:34:42 +03:00
Bruno Oliveira
72bf11cbe9
Add disabled() method to capsys and capfd
...
Fix #1599
2016-06-19 19:14:36 +02:00
Bruno Oliveira
ed69424917
Remove most content from yieldfixture as it is now deprecated
2016-06-08 21:07:55 -03:00
Bruno Oliveira
fe4f23c1bf
Update docs in prol of using yield statements
2016-06-08 21:07:52 -03:00
Marius Gedminas
3ad5b9de86
Docs: config.option is deprecated
...
https://pytest.org/latest/writing_plugins.html#_pytest.config.Config says config.option is deprecated and one should use config.getoption() instead.
2016-06-02 09:52:56 +03:00
Ronny Pfannschmidt
7305adfdba
fix another copy&paste error in the announcement list
2016-06-01 08:55:44 +02:00
Ronny Pfannschmidt
b5bd4d959d
merge master to features
2016-06-01 08:13:26 +02:00
Ronny Pfannschmidt
5c8b0fb523
fix minor typos
2016-06-01 08:03:22 +02:00
Ronny Pfannschmidt
978bb190a1
add release announcement
2016-05-31 19:06:29 +02:00
Ronny Pfannschmidt
77c28825df
regendoc and comment out a python2.7 example as per #1573
2016-05-31 19:05:36 +02:00
Bruno Oliveira
28efdebfcd
Remove "experimental" status from hookwrapper
2016-05-31 12:17:55 -03:00
Bruno Oliveira
8c1be624a6
Merge pull request #1554 from RonnyPfannschmidt/merge-master
...
Merge master into features
2016-05-24 11:09:33 -03:00
Bruno Oliveira
5ab5a11544
Merge pull request #1565 from tomviner/issue1544/ignore-build-dist-dirs
...
Issue 1544: norecursedirs build & dist dirs
2016-05-23 19:30:20 -03:00
Ronny Pfannschmidt
26b526967e
merge from master again
2016-05-23 22:33:00 +02:00
TomV
d6dfb1a393
issue 1544: norecursedirs build & dist dirs
2016-05-23 21:02:29 +01:00
Adam Chainz
8a39869347
Convert readthedocs link for their .org -> .io migration for hosted projects
...
As per their email ‘Changes to project subdomains’:
> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.
Test Plan: Manually visited all the links I’ve modified. One was not modified - `http://media.readthedocs.org/epub/pytest/latest/pytest.epub ` - since it doesn't work on `readthedocs.io`.
2016-05-18 17:12:39 +01:00
Ronny Pfannschmidt
eab762ea99
Merge branch 'master' into merge-master
2016-05-13 19:37:41 +02:00
Ronny Pfannschmidt
c49863aa63
merge next chunk from master and fix changelog linting issue
2016-05-13 19:36:47 +02:00
Ronny Pfannschmidt
01d2ff804b
Merge commit '56156bb119194014129ac08c4a2c370f0b893104' into merge-master
2016-05-13 17:55:02 +02:00
Ronny Pfannschmidt
68f658b6cc
Merge commit '890c2fa555314a67a8d97a1b8ea4881a14be69c4' into merge-master
2016-05-13 17:52:59 +02:00
Ronny Pfannschmidt
4bde70d060
Merge commit 'ec62a3c9e47c3b5b07aa1656815145ffa2882a09' into merge-master
2016-05-13 17:40:14 +02:00
palaviv
53429ed8b8
Added hook to plugin docs and new CHANGELOG record
2016-04-25 18:03:34 +03:00
Ronny Pfannschmidt
52babba33e
Update sprint 2016
2016-04-23 08:56:28 +02:00
Ana Ribeiro
f02f72e651
Update sprint2016.rst
2016-04-23 00:11:44 -03:00
Florian Bruhin
75160547f2
Use a callable __tracebackhide__ for filtering
...
While this leads to slightly more complicated user code for the common
case (checking if the exception is of a given type) it's easier to
implement and more flexible.
2016-04-20 11:09:27 +02:00
Florian Bruhin
b607f6728f
Filter selectively with __tracebackhide__
...
When __tracebackhide__ gets set to an exception type or list/tuple of
exception types, only those exceptions get filtered, while the full
traceback is shown if another exception (e.g. a bug in a assertion
helper) happens.
2016-04-20 10:25:33 +02:00
Florian Bruhin
98430a17f2
doc: Use ascii chars for file tree
...
LaTeX doesn't like those particular unicode chars, so let's avoid them so the
PDF builds easily.
2016-04-13 23:38:58 +02:00
Thomas Güttler
fb45f82840
Hudson -> Jenkins
2016-04-05 14:08:30 +02:00
Omar Kohl
c578226d43
Implement ExceptionInfo.match() to match regexp on str(exception)
...
This implements similar functionality to
unittest.TestCase.assertRegexpMatches()
closes #372
2016-04-03 11:22:44 +02:00
Bruno Oliveira
53d319144d
Mention Pytest::Framework PyPI classifier on docs
2016-03-22 20:42:52 -03:00
Omar Kohl
98c707561c
Document --full-trace option and KeyboardInterrupt
...
fix #513
2016-03-20 20:07:16 +01:00
Omar Kohl
a341dddc74
Replace --fulltrace with --full-trace in doc
...
Since 'py.test --help' shows --full-trace as an option (and not --fulltrace)
even though both forms are accepted I assume --full-trace is the preferred form
and should therefore be used in the documentation.
2016-03-20 19:51:23 +01:00
Omar Kohl
16e49d96d1
Replace --traceconfig with --trace-config in doc
...
Since 'py.test --help' shows --trace-config as an option (and not
--traceconfig) even though both forms are accepted I assume --trace-config is
the preferred form and should therefore be used in the documentation.
2016-03-20 17:12:50 +01:00
Omar Kohl
ec62a3c9e4
Fix minor typo in 'writing plugins' doc
2016-03-20 17:01:04 +01:00
Omar Kohl
f70ed83479
Fix 'test grouping by fixture instances' doc example
...
The fin() function was never added as a finalizer and did therefore not print
anything in the captured output.
In general improve the output by making it more verbose/explicit and extend the
final explanation.
2016-03-20 15:53:32 +01:00
Omar Kohl
dff914cadd
Add short explanation and link to yield fixtures in fixture doc
2016-03-20 14:10:20 +01:00
Omar Kohl
3135463573
No longer refer to the 'yield fixture mechanism' as experimental (doc)
...
The feature has been there for a long time and in the 2.7.1 release notes it
says:
> fixed docs to remove the notion that yield-fixtures are experimental.
Therefore this one place was probably just missed.
2016-03-20 13:54:56 +01:00
Omar Kohl
266b53dfc2
Add Jenkins xUnit Plugin link to doc
2016-03-20 13:39:10 +01:00
Omar Kohl
bdb3581a52
Fix minor mistake in test discovery doc
...
The example output shown was for Python3 not Python2.
Add Python2 output and rephrase for clarity.
2016-03-20 13:24:43 +01:00
Omar Kohl
27b62740e3
Fix minor mistake in usage doc (pkg instead of pypkg)
2016-03-20 12:47:17 +01:00
Bruno Oliveira
5fcce8a7d6
Merge branch 'master' into merge-master-into-features
2016-03-18 18:26:56 -03:00
nicoddemus
168daaa71f
Regendocs
2016-03-17 17:13:41 -04:00
nicoddemus
43fc1b47c0
Add announce doc
2016-03-17 17:10:02 -04:00
Florian Bruhin
1d35a03812
Update talks page
2016-03-17 06:37:49 +01:00
Tareq Alayan
fa6acdcfd4
junitxml: add properties node in testsuite level
...
The commit allow users to add a properties node in testsuite level see
example below:
<testsuite errors="0" failures="0" name="pytest" skips="1" tests="1"
time="11.824">
<properties>
<property name="ARCH" value="PPC"/>
<property name="OS" value="RHEL 7.2"/>
<property name="TestPlanURL" value="https://url .."/>
<property name="Automated" value="True"/>
</properties>
<testcase classname="git.....>
</testcase>
</testsuite>
The current situation is that properties node can be added to every
testcase node. However, sometimes we need some global properties that
applies to all testcases and give better description for the testsuite
itself.
2016-03-16 13:24:33 +02:00
Kale Kundert
5dab0954a0
Add approx() to the Sphinx docs.
2016-03-07 18:14:49 -08:00
Bruno Oliveira
28937a5cd9
Add versionadded directive to doctest_namespace section
2016-03-02 23:37:51 -03:00
Matt Williams
6dd2ff5332
Correct indentation in documentation
2016-03-02 13:02:15 +00:00
Matt Williams
891e029518
Add a new doctest_namespace fixture
...
This fixture can be used to inject names into the namespace in which
your doctests run.
2016-03-02 12:43:57 +00:00
Bruno Oliveira
e656dbb602
Merge branch 'release-290'
2016-03-01 18:45:33 -03:00
Floris Bruynooghe
63b69326b8
Add company name to flub in sprint attendees
2016-03-01 10:17:31 +00:00
nicoddemus
19d05814d2
Fix reference to _CallOutcome in docs
2016-02-29 17:09:31 -05:00
nicoddemus
7d2b65813e
Fix typo in CHANGELOG
2016-02-29 16:48:28 -05:00
nicoddemus
f82c03833f
Regendocs
2016-02-29 15:52:56 -05:00
nicoddemus
486421fca2
Release announcement for 2.9.0
2016-02-29 15:47:23 -05:00
Raphael Pierzina
89151b8c63
Add company name to @hackebrot in sprint attendees
2016-02-27 22:15:07 +00:00
Raphael Pierzina
a95fe3693b
Add auto to tb styles (new default since v2.6)
2016-02-27 20:54:44 +00:00
Bruno Oliveira
310bada6f5
Merge pull request #1409 from nicoddemus/builtin-fixtures-docs
...
Add reference to some builtin fixtures in "contents"
2016-02-25 15:46:33 -03:00
holger krekel
a50209b29e
add some more people, and preliminary company affiliations
2016-02-25 06:50:19 +01:00
Bruno Oliveira
c78a8b28dc
Add reference to some builtin fixtures in "contents"
...
Fix #1408
2016-02-23 17:26:24 -03:00
Matt Williams
fc4e240596
Correct JUnit test invocation example
2016-02-23 10:05:51 +00:00
Raphael Pierzina
19536c9f05
Add full MIT license text to the docs section
2016-02-17 00:54:54 +00:00
Raphael Pierzina
e4c1b9c1c4
Add link to license page to index.rst
2016-02-17 00:47:49 +00:00
Raphael Pierzina
25aed0dca8
Add a license section to the docs toc
2016-02-16 19:42:16 +00:00
TomV
3dd50d039d
Fix rst syntax
2016-02-15 23:07:31 +00:00
Bruno Oliveira
7823838e69
Add strict option to xfail, making tests which XPASS to actually fail the suite
...
Fix #1355
2016-02-14 20:52:27 -02:00
holger krekel
fa601de5c4
update participants
2016-02-13 16:55:16 +01:00
holger krekel
8284d14ec4
re-introduce topics
2016-02-13 16:54:06 +01:00
holger krekel
238dcd8bae
some layout refinements
2016-02-13 14:30:10 +01:00
holger krekel
b95ff7104c
Merge branch 'master' of https://github.com/pytest-dev/pytest
...
removed doc/en/announce/sprint-funding-2016.txt
because /doc/en/announnce/sprint2016.txt is the one which
we published.
2016-02-13 14:18:05 +01:00
Ronny Pfannschmidt
dc7f76c276
adapt the header text based on a discussion with bruno
2016-02-13 13:40:59 +01:00
Ronny Pfannschmidt
20bd56f4b2
give the header contrast
2016-02-13 13:24:28 +01:00
Ronny Pfannschmidt
48b62e4d89
add links for the funding campaign in the header and sidebar
2016-02-12 21:14:06 +01:00
holger krekel
48109b0e60
remove superflous file
2016-02-09 15:45:51 +01:00
holger krekel
fdce2306a7
fix names once again
2016-02-09 15:44:32 +01:00
Florian Bruhin
f00577f7c4
Also fix Brianna's name.
2016-02-09 15:37:45 +01:00
Florian Bruhin
569dbeb087
Fix names properly.
2016-02-09 15:36:59 +01:00
holger krekel
05aad5c381
fix brianna's name once again
2016-02-05 14:12:35 +01:00
holger krekel
1e0088a949
fix EUR->USD
2016-02-05 14:11:30 +01:00
holger krekel
ba3b29e831
add a link to lieve indiegogo campaign in the pytest sprint page
2016-02-05 14:04:32 +01:00
holger krekel
6218e20e88
- preliminary sprint page, not yet linked through the header
...
- also removed plugins_index call from tox.ini "doc" env because it's not there
2016-02-05 11:34:40 +01:00
Ronny Pfannschmidt
7b2956e10b
merge latest master into features as well
2016-02-05 00:13:48 +01:00
Ronny Pfannschmidt
de1a9f574c
merge from master
2016-02-05 00:10:28 +01:00
holger krekel
c0024a723d
fixed name
2016-01-30 19:12:41 +01:00
holger krekel
545bf0d5a1
a few refinements
2016-01-29 15:43:15 +01:00
holger krekel
70b5d5aee9
sprint funding draft
2016-01-29 14:52:07 +01:00
Bruno Oliveira
74a68b5ec6
Add CHANGELOG and docs for #1345
2016-01-27 19:57:11 -02:00
Bruno Oliveira
a912d3745b
Moved py.code code over to py.test
...
Fix #103
2016-01-25 23:18:04 -02:00
Ronny Pfannschmidt
3315b3a12f
finalize changelog for 2.8.7
2016-01-24 23:23:15 +01:00
Ronny Pfannschmidt
64d7d00218
Prepare 2.8.7 release
2016-01-24 17:59:48 +01:00
Bruno Oliveira
199fcf93d4
Merge branch 'master' into 'features'
2016-01-22 18:32:45 -02:00
Bruno Oliveira
82d00efa8d
2.8.6 release: version, CHANGELOG
...
Remove note about expected failing envs in tox, as tox now supports
skipping certain environments based on the platform.
2016-01-21 19:17:53 -02:00
Loïc Estève
99072ea8c9
Fix practise -> practice typo in documentation
2016-01-20 16:35:27 +01:00
Bruno Oliveira
0caee1a673
Add a few missing hooks to the docs
2016-01-18 19:27:35 -02:00
Jeff Widman
ee75ecbda0
Change `input` to `test_input` in docs for clarity
...
Using `input` is confusing because it's also the name of a Python built-in function. So we use `test_input` instead. Fix #1321
2016-01-12 17:01:34 -08:00
Manu Phatak
5b29f579c5
update docs plugin.rst typo
2016-01-11 00:11:46 -06:00
Bruno Oliveira
b8784c28c9
Merge branch 'master' into 'features'
2016-01-08 21:51:34 -02:00
Kartik Singhal
26c835eea5
Correct platform name osx -> darwin
2016-01-05 18:43:03 -05:00
Bruno Oliveira
02dd6df6e6
Changelog now in rst format (2.9.0 and onward) and add rst-lint check
...
Fix #1274
2016-01-03 23:09:24 -02:00
Ronny Pfannschmidt
6c170201d6
Merge branch 'master' into features
2016-01-02 23:56:01 +01:00
Ronny Pfannschmidt
bf4de4bd68
Merge pull request #1294 from nicoddemus/doctest-bytes-literals
...
Doctest bytes literals
2016-01-01 18:18:08 +01:00
Bruno Oliveira
1bdf71730a
Complement #1255 by adding tests and docs
...
Fix #1242
2015-12-30 18:24:59 -02:00
Bruno Oliveira
5a5b732fe1
Add docs for ALLOW_BYTES doctest option
...
Fix #1287
2015-12-29 21:05:11 -02:00
Rick van Hattem
87ff7ee232
Updated out of date link
2015-12-27 02:35:02 +01:00
Ronny Pfannschmidt
1a87bb2416
Merge pull request #1280 from nicoddemus/del-index-from-overview
...
Remove "index" entry from overview.rst
2015-12-25 07:33:15 +01:00
Bruno Oliveira
319f6310f8
Remove "index" entry from overview.rst
...
"index" is already displayed in the main docs, repeating it here breaks the reading flow
2015-12-24 16:08:43 -02:00
Peter Demin
8180165229
doc typo
2015-12-24 08:56:54 -05:00
Bruno Oliveira
ec597e81a4
Remove references to python pre-2.6 from docs
2015-12-16 16:16:22 -02:00
Bruno Oliveira
6ac31088c5
Merge branch 'master' into merge-master-into-features
2015-12-11 23:13:50 -02:00
Bruno Oliveira
4263b8b407
Restore regen-doc result
2015-12-11 22:34:16 -02:00
Florian Bruhin
7d150c20cf
Regenerate 2.8.5 docs.
2015-12-11 22:28:23 -02:00
Bruno Oliveira
a124163425
Prepare for 2.8.5: bump version, CHANGELOG, announce
2015-12-11 19:20:07 -02:00
Bruno Oliveira
86b6ce5042
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2015-12-10 19:41:14 -02:00
Bruno Oliveira
139c97930b
Remove plugins_index from the docs
...
Fix #1229
2015-12-10 19:00:01 -02:00
Buck Golemon
eabf2f9091
Merge branch 'master' into features
...
Conflicts:
AUTHORS
_pytest/__init__.py
_pytest/hookspec.py
_pytest/recwarn.py
testing/test_recwarn.py
2015-12-07 14:28:59 -08:00
Ronny Pfannschmidt
b9908cc036
Merge pull request #1228 from pytest-dev/pytest-2.8.4
...
finish the release process of pytest 2.8.4
2015-12-06 20:32:52 +01:00
Ronny Pfannschmidt
8c17c7cd12
correct copy&paste error in the release announcement version number
2015-12-06 17:44:08 +01:00
Ronny Pfannschmidt
b7459b8a64
finish release announcement
2015-12-06 16:46:44 +01:00
Ronny Pfannschmidt
b920f09a95
doc regen for release 2.8.4
2015-12-06 16:14:23 +01:00
Ronny Pfannschmidt
a4a12b8356
Merge pull request #1227 from nicoddemus/warn-deprecated-call
...
Add a note about how DeprecationWarning and PendingDeprecationWarning are treated differently
2015-12-06 10:52:58 +01:00
Bruno Oliveira
b48a02fdb1
Add a note about how DeprecationWarning and PendingDeprecationWarning are treated differently
...
Fix #1026
2015-12-05 13:53:58 -02:00
Bruno Oliveira
382efc6363
Fix same inconsistency in next example
2015-12-05 00:43:06 -02:00
Bruno Oliveira
1bed514eb6
Fix inconsistency in skipif example
...
Fix #1224
2015-12-05 00:35:31 -02:00
Bruno Oliveira
41f19796e8
Merge pull request #1212 from nicoddemus/goodpractices
...
Goodpractises docs reorganization/review
2015-12-05 00:27:28 -02:00
Jeff Widman
61934ae82d
Fix typo: previosuly --> previously
2015-12-03 11:56:18 -08:00
Bruno Oliveira
8c74bb0d25
Improve description on how pytest starts test collection in goodpractises
2015-12-03 01:01:34 -02:00
Bruno Oliveira
bb4771cedf
Remove promise about documenting how to create a zipped pytest
2015-12-03 00:13:16 -02:00
Bruno Oliveira
9475cd3fb8
Replace "--assertmode=off" by "--assert=plain"
...
Fix #1214
2015-12-02 18:39:32 -02:00
Bruno Oliveira
464e16deca
Removed incorrect note about genscript requiring wheels
2015-12-02 18:33:53 -02:00
Bruno Oliveira
d9b78f2a95
Remove reference to distutils
2015-12-02 18:30:12 -02:00
Bruno Oliveira
5040dde0c5
Fix genscript deprecation version and document reasons for such
2015-12-01 23:09:15 -02:00
Bruno Oliveira
095abfd035
Fix formatting errors
2015-12-01 22:52:22 -02:00
Bruno Oliveira
69ef0ab189
Merged virtual env into the Tox section
...
Nowadays virtualenv use is widespread so we don't need to
devote a how-to section in pytest's docs
2015-12-01 22:47:36 -02:00
Bruno Oliveira
d851a8fd07
Fixed some formatting
2015-12-01 22:43:11 -02:00
Bruno Oliveira
0704fcacd7
Removed setuptools/genscript session
2015-12-01 22:32:07 -02:00
Bruno Oliveira
4f17d56ecb
Move deprecated genscript method to the bottom of the document
2015-12-01 22:30:08 -02:00
Bruno Oliveira
b1f6dc23da
Moved "conventions for Python test discovery to the top"
2015-12-01 22:28:20 -02:00
Bruno Oliveira
c6f90c25e3
Remove finalize_options override from goodpractices
...
This is not required in latest versions of `setuptools`, and
`self.test_args` is a read-only attribute in some of the
versions of the 18.X series.
Fix #1134
2015-12-01 22:20:40 -02:00
Nicholas Chammas
c7cf4adfd0
Update xdist link; BitBucket -> GitHub
...
xdist is now hosted on GitHub.
2015-12-01 13:20:55 -05:00
Jeff Widman
6be6798cdf
Fix spelling: explicitely --> explicitly
2015-12-01 01:41:47 -08:00
Tim Chan
a8d7e513f4
Fixed docs
2015-11-27 22:46:45 -08:00
Bruno Oliveira
b20803f0a6
Mention pytest_enter_pdb in the docs
2015-11-23 18:00:02 -02:00
Bruno Oliveira
1f148a93ec
Mention pytest_enter_pdb in the docs
2015-11-23 13:02:15 -02:00
Ronny Pfannschmidt
e4a000bb00
refer more explicit to osx el cap in the changelogs
2015-11-18 17:57:41 +01:00
Ronny Pfannschmidt
d04505553e
update authors list for 2.8.3 and add a log command to the howto
2015-11-18 17:55:18 +01:00
Ronny Pfannschmidt
2b5c46b2ab
correct drop in version in announcement
2015-11-18 17:48:35 +01:00
Ronny Pfannschmidt
063f90f0d2
run regendoc
2015-11-18 17:47:17 +01:00
Ronny Pfannschmidt
6096cae3dd
release announcements for 2.8.3
2015-11-18 17:38:31 +01:00
Gabe Hollombe
ac0b7b9803
Add 'Improve your testing with Pytest and Mock' video from PyCon SG 2015
2015-11-11 11:28:59 +08:00
Raphael Pierzina
d667259e31
Change pytest ignore invocation as suggested by @nicoddemus
2015-11-04 23:45:29 +01:00
Raphael Pierzina
a2d07bfa93
Add pytest invocation along with result
2015-11-04 15:34:18 +01:00
Raphael Pierzina
586fdbcbbd
Add example tests directory structure
2015-11-04 15:00:37 +01:00
Raphael Pierzina
04079f9ae5
Start doc section on ``--ignore`` in pytestcollection.rst
2015-11-04 14:49:02 +01:00
Toilal
8abf85e96c
Use pytest-runner for setuptools integration
2015-11-02 12:22:40 +01:00
William Martin Stewart
1376d75fbe
Fix typo in parametrize.rst
2015-10-30 09:58:41 +02:00
Bruno Oliveira
8e54d07c40
Fix link in FAQ about parametrizing tests
...
Fix #1154
2015-10-26 22:46:35 -02:00
b-jazz
f174026f53
Update usage.rst
...
Remove double "the" in usage comments
2015-10-24 02:36:02 -07:00
Bruno Oliveira
7469b5591e
Update plugins_index.rst
2015-10-17 13:37:38 -03:00
Bruno Oliveira
75932a92d0
Make pytest-version mandatory
...
Fix #1118
2015-10-17 13:37:01 -03:00
Hartmut Goebel
4fba20e544
Add link to unittest2pytest
...
Closes #991 .
2015-10-17 18:14:52 +02:00
Florian Bruhin
dadf03baea
Use a string for pytest_plugins in docs.
2015-10-12 06:57:43 +02:00
Michael K
37e96c9335
[doc] Fixed indentation
2015-10-10 13:29:22 +02:00
Florian Bruhin
ec74a8deb8
Fix contents.rst.
...
This was broken in 787c866191
.
2015-10-07 18:10:13 +02:00
Florian Bruhin
b955473533
Add 2.8.2 release annoucement.
2015-10-06 22:37:59 +02:00
Florian Bruhin
2026ce0ed2
Update plugin_index.
2015-10-06 22:35:16 +02:00
Florian Bruhin
42937d4bb6
Prepare 2.8.2 release.
2015-10-06 21:06:25 +02:00
Michael Aquilina
abc27f56fc
Update skipping.rst with correct version marker
2015-10-03 16:42:15 +01:00
Michael Aquilina
dc7153e33c
Spelling and grammar fixes
2015-10-03 16:42:15 +01:00
Michael Aquilina
5ec08d3081
Delete trailing whitespace
2015-10-03 16:42:15 +01:00
Michael Aquilina
61b8443723
Update docs with new skip marker
2015-10-03 16:42:14 +01:00
Bruno Oliveira
f9e9413f52
plugins_index was still generating ".txt" files, so it was effectively being ignored
...
Fix #1105
2015-10-02 19:21:55 -03:00
Ronny Pfannschmidt
9263b3a051
Merge pull request #1096 from hackebrot/update-docs-skip-with-cli-option
...
Update docs skip with cli option
2015-10-01 18:31:55 +02:00
Ronny Pfannschmidt
688f955f5e
Merge pull request #1058 from nicoddemus/doc-how-disable-cache
...
Add docs on how to disable cache provider
2015-10-01 13:06:02 +02:00
Raphael Pierzina
4829eac1e1
Use a variable for the skipif marker as suggested by @nicoddemus
2015-09-30 21:53:34 +02:00
Raphael Pierzina
a10da0e540
Implement skipif marker for slow test based on pytest.config
2015-09-30 19:41:47 +02:00
Raphael Pierzina
7ac8a88a05
Remove pytest_runtest_setup from conftest.py
2015-09-30 19:25:57 +02:00
Ionel Cristian Mărieș
c8f5a40fd9
Edit examples again to use hookimpl.
2015-09-30 16:58:12 +03:00
Ionel Cristian Mărieș
f4f23e8e09
Correct hook examples in docs.
2015-09-30 16:12:33 +03:00
holger krekel
e3562be530
remove unclear todo that irritates in the online docs
2015-09-29 18:23:44 +02:00
holger krekel
cb58eaa611
Merge remote-tracking branch 'upstream/master' into features
...
Conflicts:
_pytest/__init__.py
testing/test_recwarn.py
2015-09-29 15:56:41 +02:00
holger krekel
787c866191
hide some parts from generating latexpdf
2015-09-29 13:37:30 +02:00
holger krekel
95245b935c
- fix a flaky test on py35-xdist by calling
...
importlib.invalidate_caches()
- bump version to 2.8.1
- regen docs
- amend changelog, authors
2015-09-29 13:10:59 +02:00
Bruno Oliveira
6caa7083db
Moved more detailed options on how to disable a plugin to plugins.rst
2015-09-28 18:23:08 -03:00
holger krekel
0c05ca1fd5
Merge branch 'master' into features
2015-09-26 10:03:42 +02:00
Ronny Pfannschmidt
842aa5746f
Merge pull request #1069 from nicoddemus/docs-contents-reorg
...
Reorganize "Contents" page
2015-09-26 09:18:42 +02:00
Ronny Pfannschmidt
c2c2451788
Merge pull request #1071 from nicoddemus/xml-xdist
...
Wrong xml report when used with pytest-xdist
2015-09-26 09:05:25 +02:00
Bruno Oliveira
b72c3310bc
Add note on docs about record_xml_property not working with xdist
2015-09-26 03:24:07 -03:00
Oleg Alexandrov
9d2d2d17af
Clarify documentation
...
Fix doc markup
2015-09-25 21:46:06 -07:00
Bruno Oliveira
b403395cdb
Reorganize "Contents" page
...
Change the organization in a more logical way to a newcomer
2015-09-26 01:09:50 -03:00
Florian Bruhin
448ec8b740
Mark sources correctly in parametrize.rst.
...
Sphinx didn't pick this up as monospace text.
2015-09-25 18:43:33 +02:00
Florian Bruhin
272f987b0c
Fix test_time in parametrize doc.
...
The source was indented with a mixture of tabs and spaces, causing syntax
errors when executed.
2015-09-25 18:42:06 +02:00
Florian Bruhin
0ebac22bb2
Regenerate fixture list doc with cache docstring.
2015-09-25 18:41:07 +02:00
Tim Staley
eb2caa554c
Docs: Fixtures page - clarify usage of module-level pytestmark.
...
It certainly wasn't clear to me that the variable assigned by
pytest.mark.usefixtures should also be called pytestmark,
so I was confused when::
foo = pytest.mark.usefixtures('fixture_bar')
wasn't behaving as expected; correct usage is of course::
pytestmark = pytest.mark.usefixtures('fixture_bar')
I assume this is by design, otherwise that's a separate issue, at
least current behaviour should be documented.
2015-09-25 14:57:08 +01:00
Bruno Oliveira
b09d3724a0
Add docs on how to disable cache provider
2015-09-23 19:15:44 -03:00
Ronny Pfannschmidt
c3588b545f
generate docs on python3.4
2015-09-22 16:52:35 +02:00
Ronny Pfannschmidt
5ff75a41ea
fix erroring doc example
2015-09-22 15:05:56 +02:00
Ronny Pfannschmidt
89badfec0c
update regendoc, substitutes PYTHON_PREFIX
2015-09-22 14:48:04 +02:00
Ronny Pfannschmidt
662d755974
fix documentation gegeneration, kill Makefile
2015-09-22 14:22:37 +02:00
Galaczi Endre
beaa8e55bd
Fixes #653 use deprecated_call as context_manager
2015-09-21 19:01:23 +01:00
Floris Bruynooghe
7c3be72ac7
Merge pull request #1042 from Bjwebb/issue411
...
Add __eq__ method to assertion comparison example
2015-09-21 14:57:59 +01:00
Ben Webb
622e64320a
Add __eq__ method to assertion comparison example
...
This makes the example make more sense, because now Foo(1) == Foo(1) is
true. Fixes #411
2015-09-21 14:23:26 +01:00
Russel Winder
714a97e452
Remove references to distutils as per Issue 766.
2015-09-21 12:00:48 +01:00
Ronny Pfannschmidt
1aca998f3f
Merge pull request #1012 from lukas-bednar/junitxml_plugin
...
junitxml: align custom properties with junit format
2015-09-18 16:01:22 +02:00
Lukas Bednar
02a2272cfe
junitxml: move custom properties to properties element
...
<testsuite>
<testcase>
<properties>
<property name="ABC" value="XYZ" />
<property name="DEF" value="ZYX" />
</properties>
</testcase>
</testsuite>
2015-09-17 15:56:41 +02:00
Michael Droettboom
16f90ffc92
Various Python 3.5 documentation mentions
2015-09-17 07:32:52 -04:00
Florian Bruhin
2575053697
Merge pull request #1015 from hpk42/cache-integration
...
refined pytest-cache integration
2015-09-16 21:46:46 +02:00
holger krekel
3841e99720
avoid oldstyle funcarg usage
2015-09-16 21:06:44 +02:00
holger krekel
79d22bf334
some more doc refinements
2015-09-16 20:44:41 +02:00
holger krekel
45065e4e2e
refine command line option naming and docs
2015-09-16 20:41:22 +02:00
holger krekel
9a90aaca96
improve and integrate docs
2015-09-16 17:15:31 +02:00
holger krekel
fdd23878ec
Merge latest changes from branch 'pytest-2.7'
...
Conflicts:
_pytest/__init__.py
doc/en/fixture.rst
setup.cfg
testing/test_runner.py
2015-09-16 09:26:55 +02:00
Ronny Pfannschmidt
c06ff2a992
update docs on the json usage of builtin cache
2015-09-13 19:55:44 +02:00
Ronny Pfannschmidt
3d843edc69
minor doc reference fixes
2015-09-13 19:55:44 +02:00
Ronny Pfannschmidt
e20216a1a8
merge the pytest-cache plugin into core
2015-09-13 19:55:44 +02:00
Evan Bender
6ffb659282
Document single-method usage
...
It is possible to run a single test method in a class, but the syntax is
not glaringly obvious and documentation would help people out.
2015-09-04 15:11:57 -04:00
Brianna Laugher
c493f263b6
Merge branch 'Elizaveta239-master' closes #908
2015-08-29 17:34:35 +10:00
Bruno Oliveira
87cb5bc5b7
Add note that using marks on fixtures is not supported
...
Fix #964
2015-08-27 20:11:18 -03:00
Bruno Oliveira
d988d2006f
Mention cookie-cutter in the docs and fix broken links to <extplugin>
2015-08-25 23:59:18 -03:00
elizabeth
e67d66a5d4
Merge branch 'pytest-dev'
...
# Conflicts:
# AUTHORS
2015-08-24 22:55:11 +03:00
Bruno Oliveira
70da93145d
Improve docs and using warning system for record_xml_property fixture
2015-08-23 11:56:27 -03:00
Bruno Oliveira
a20c6d072d
Fix getdoctarget to ignore comment lines
2015-08-23 11:20:34 -03:00
David Diaz
44d9365da0
Add warning of "preliminary feature" to record_xml_property
2015-08-21 15:21:12 -06:00
David Diaz
2ddbac1f98
Correcting implementation based on pull request feed back
2015-08-21 14:31:53 -06:00
David Diaz
24212fd97f
Add support to record custom properties on xml output
2015-08-20 17:55:38 -06:00
Bruno Oliveira
93aee0f814
Add docs and CHANGELOG for ALLOW_UNICODE option
2015-08-12 22:17:15 -03:00
Christian Theune
2174f3ce37
Fix accidental inversion in skip example.
2015-08-12 07:38:04 +02:00
Bruno Oliveira
d49fb8a2d5
Change cx_freeze example to not use regendoc
2015-08-08 19:17:50 -03:00
Bruno Oliveira
e8583f01a0
Replaced __multicall__ examples in docs by hookwrapper
...
Fix #929
2015-08-08 19:07:27 -03:00
Abhijeet Kasurde
6d446e7167
Converted documentation from txt to rst
2015-08-05 10:24:14 +05:30
Abhijeet Kasurde
185e730feb
Added makefile changes for docs
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2015-08-04 18:44:52 +05:30
Abhijeet Kasurde
e79413acc4
Updated documentation from txt to rst
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2015-08-04 16:41:02 +05:30
Bruno Oliveira
d761bfffd7
Merge pull request #897 from hunse/warns
...
Warns
2015-08-03 22:48:20 -03:00
elizabeth
f7bacd169e
Update docs
2015-08-04 00:48:41 +03:00
Floris Bruynooghe
b097d8c0a6
Update docs to represent reality
...
This was changed after EuroPython 2014, now both the message and the
introspection is presented.
2015-08-02 22:36:19 +01:00
Eric Hunsberger
52b4eb6c46
Added `warns` to assert warnings are thrown
...
Works in a similar manner to `raises`, but for warnings instead
of exceptions. Also refactored `recwarn.py` so that all the
warning recording and checking use the same core code.
2015-07-30 23:28:32 -04:00
Bruno Oliveira
4d8e3cbcb0
Use smtp.gmail.com server for examples and fixes examples for python 3
...
Examples in py3 where showing the wrong message:
TypeError: Type str doesn't support the buffer API
2015-07-30 23:54:24 -03:00
Bruno Oliveira
7a918a1617
Fix regendoc section in fixture.txt
...
Noticed thanks to #903
2015-07-30 23:21:19 -03:00
Bruno Oliveira
9cf9900721
Merge pull request #892 from The-Compiler/multi-parametrize
...
Document and test stacking of parametrize.
2015-07-26 21:00:29 -03:00
Brianna Laugher
5ebad5c96d
Delete release.txt from docs, merge extra comments to HOWTORELEASE.rst
2015-07-26 15:20:32 +02:00
Florian Bruhin
2ab4bf13ab
Document and test stacking of parametrize.
...
Closes #815 .
2015-07-26 14:39:13 +02:00
Floris Bruynooghe
8338c692a3
Merge pull request #887 from maartenq/753content_of
...
changed contents -> content but still #753 did not solved, might be i…
2015-07-25 19:11:53 +02:00
Maarten
df8a83b2a1
changed contents -> content but still #753 did not solved, might be issues with regendoc
2015-07-25 17:48:12 +02:00
Christian Pommranz
00e1a2122a
Deprecate and warn about --genscript, fixes #730
2015-07-25 15:10:22 +02:00
Bruno Oliveira
ab9e246ab0
Avoid detecting conftest files upwards from setup.cfg/pytest.ini/tox.ini files by default
...
As discussed in #82
2015-07-23 23:21:07 -03:00
Anatoly Bubenkov
6af7172204
Merge branch 'pytest-2.7'
2015-07-19 15:25:04 +02:00
Bruno Oliveira
da1d5712cf
Fix broken links
...
Fix #857
2015-07-18 14:15:07 -03:00
Bruno Oliveira
94cdec2cfe
Update sidebar links from Bitbucket to GitHub
2015-07-16 03:08:06 +00:00
Bruno Oliveira
ebf32ae8a9
Update CONTRIBUTING documentation with GitHub instructions
2015-07-16 03:07:16 +00:00
Bruno Oliveira
0f52856f99
Use a subdirectory in the TEMP directory to speed up tmpdir creation
...
Fix #105
2015-07-15 20:03:58 -03:00
Bruno Oliveira
8f4f2c665d
Mention pytest-runner in the docs
...
Fix #147
2015-07-13 21:59:37 -03:00
Bruno Oliveira
854e603f84
Add new testdirs ini option
...
Fix #694
2015-07-10 21:52:47 -03:00
Bruno Oliveira
0ee3ee7333
Add syntax highlighting to missing snippets in the documentation and other fixes
...
- Add explicit "code-block" for sessions without syntax highlight
- Moved Metafunc documentation to the class docstring and reused that in the
docs;
2015-07-09 21:50:38 -03:00
Bruno Oliveira
ae4c8b8635
Merge pull request #787 from pytest-dev/pluggy-bc-fix
...
Reintroduce get_plugin_manager() for backward-compatibility
2015-07-08 19:28:01 -03:00
Jeff Widman
4fa64a962e
Fix typo + grammar
2015-07-07 16:35:21 -07:00
Bruno Oliveira
76497c2542
Fix plugins_index script and update plugins_index.txt
2015-06-30 19:01:28 -03:00
Bruno Oliveira
3c2fd833ca
Reintroduce get_plugin_manager() for backward-compatibility
...
PyCharm pytest runner depends on this function existing (see #787 ).
Added reference to get_plugin_manager() and PluginManager/PytestPluginManager to docs
2015-06-25 00:48:47 -03:00
holger krekel
ee40ea5f6d
Merge branch 'pytest-2.7'
...
Conflicts:
AUTHORS
_pytest/__init__.py
setup.py
testing/conftest.py
tox.ini
2015-06-23 16:49:05 +02:00
holger krekel
e84c00efae
finish pytest-2.7.2 release
2015-06-23 16:31:24 +02:00
holger krekel
898b63b665
change spelling, thanks Maciej Maciaszek
2015-06-22 11:34:00 +02:00
Bruno Oliveira
d4e77faea7
Update sidebar links from Bitbucket to GitHub
2015-06-15 19:18:03 -03:00
Bruno Oliveira
ff58ae66c0
Update CONTRIBUTING documentation with GitHub instructions
2015-06-15 18:54:44 -03:00
Bruno Oliveira
b40f760cc3
Change links from bitbucket to GitHub
2015-06-15 18:28:31 -03:00
Ronny Pfannschmidt
43d27ec7ed
use regendoc normalization and regenerate docs
...
--HG--
branch : regendoc-upgrade
2015-06-06 23:30:49 +02:00
holger krekel
a2bb2ff164
port typo fix
2015-06-03 23:43:12 +02:00
holger krekel
b5fd3cfb84
fix typo
...
--HG--
branch : pytest-2.7
2015-06-03 23:42:38 +02:00
Floris Bruynooghe
b09be4e3ef
Merged in flub/pytest (pull request #297 )
...
Merge 2.7.1 release changes into default
2015-05-31 20:27:13 +01:00
Darren Yin
efce2ababa
add in missing finalizer to doc example
2015-05-21 19:15:52 -07:00
Floris Bruynooghe
d299f0d99f
Merge changes from 2.7.1 release
...
This is mostly doc examples regeneration, other changes are:
- Add 2.7.1 tag to .hgtags
- Update changelog to use real versions
- Update HOWTORELEASE.rst
- Fix rst in doc/en/adopt.txt
- Fix CHANGELOG and release-2.7.0 rst formatting
2015-05-19 21:43:50 +01:00
Floris Bruynooghe
738c8762df
Regenerate docs using 2.7.1
...
--HG--
branch : pytest-2.7
2015-05-19 01:54:24 +01:00
Floris Bruynooghe
3d990a6237
Fix rest formatting and set final version number
...
--HG--
branch : pytest-2.7
2015-05-19 01:53:06 +01:00
Floris Bruynooghe
b024dbe794
Remove unused link
...
--HG--
branch : pytest-2.7
2015-05-19 01:52:33 +01:00
holger krekel
3401049dea
remove adopt pytest note
2015-05-12 13:36:43 +02:00
holger krekel
45851644c1
remove adopt message
...
--HG--
branch : pytest-2.7
2015-05-12 13:34:32 +02:00
holger krekel
bddc88f09e
adapt to pluggy naming, rename pytest.hookspec_opts to pytest.hookspec,s ame with hookimpl_opts
...
--HG--
branch : pluggy1
2015-05-06 10:08:08 +02:00
holger krekel
5ea7f0342b
Merged default into pluggy1
...
--HG--
branch : pluggy1
2015-05-05 22:29:53 +02:00
holger krekel
920b5afe45
now that we are going to have wheels, py source code might be not be installed
...
and the resulting genscript is useless
--HG--
branch : pluggy1
2015-05-04 14:42:01 +02:00
holger krekel
ef7f627573
merging pytest-2.7
2015-05-04 14:27:09 +02:00
Eric Siegerman
5a06330f61
Doc typo
...
--HG--
branch : pytest-2.7
2015-05-01 11:18:17 -04:00
Floris Bruynooghe
d6d8d5b9d1
Prepare docs for bugfix release
...
--HG--
branch : pytest-2.7
2015-04-30 22:54:43 +01:00
holger krekel
db5649ec6a
streamline pytester API majorly:
...
- integrate conftest into pytester plugin
- introduce runpytest() to either call runpytest_inline (default) or
runpytest_subprocess (python -m pytest)
- move testdir.inline_runsource1 to pdb tests
- strike some unneccessary methods.
- a new section "writing plugins" and some better pytester docs
--HG--
branch : testrefactor
2015-04-28 11:54:53 +02:00
holger krekel
a8afba054a
- refine lsof checking
...
- make runpytest() create an inline testing process instead of
a subprocess one
--HG--
branch : testrefactor
2015-04-28 11:54:46 +02:00
holger krekel
c54afbe42e
deprecate and warn about __multicall__ usage in hooks, refine docs about hook ordering,
...
make hookwrappers respect tryfirst/trylast
--HG--
branch : more_plugin
2015-04-27 12:50:34 +02:00
holger krekel
ea50ef1588
split plugin documentation into "using" and "writing plugins",
...
referencing each other. Also add tryfirst/trylast examples.
--HG--
branch : more_plugin
2015-04-25 11:29:11 +02:00
holger krekel
d2a5c7f99b
add documented hookimpl_opts and hookspec_opts decorators
...
so that one doesn't have to use pytest.mark or function-attribute setting anymore
--HG--
branch : more_plugin
2015-04-25 11:29:11 +02:00
holger krekel
1ab93a5f1d
Merged in release-checklist (pull request #266 )
...
add a release checklist
2015-04-04 16:27:07 +02:00
Bruno Oliveira
6558c7245f
Brought back discussion session
...
Reworded it a bit to bring it to par with the current status
--HG--
branch : yield-experimental-docs
2015-04-03 19:44:06 -03:00
Bruno Oliveira
b3d646455a
Fixed straightforward spelling
...
--HG--
branch : yield-experimental-docs
2015-04-03 17:06:51 -03:00
Bruno Oliveira
161d9e5971
Removed "discussion" session
...
Kept a note about exceptions after yield not being reraised
--HG--
branch : yield-experimental-docs
2015-04-03 16:59:33 -03:00
Bruno Oliveira
30260361dd
Reviewed wording about yield being a "new" feature
...
--HG--
branch : yield-experimental-docs
2015-04-03 16:55:10 -03:00
Bruno Oliveira
c1b935adbd
Removed note about yield fixtures being experimental
...
--HG--
branch : yield-experimental-docs
2015-04-03 16:28:20 -03:00
holger krekel
7f05cd8bfc
more streamlining of release checklist
...
--HG--
branch : release-checklist
2015-04-02 10:55:24 +02:00
holger krekel
b55d66d0cf
- avoid setting of versions and targets in conf.py and Makefile
...
as discussed on pytest-dev
- "make help" now prints pytest specific information.
- add a "_getdoctarget.py" helper
- make ``setup.py`` read the version from ``_pytest/__init__.py``
--HG--
branch : release-checklist
2015-04-02 10:38:25 +02:00
holger krekel
81d7883884
refine release process according to Bruno's feedback
...
--HG--
branch : release-checklist
2015-03-27 09:27:31 +01:00
holger krekel
ad137d46a2
add a release checklist
...
--HG--
branch : release-checklist
2015-03-26 14:04:33 +01:00
holger krekel
e16983d265
bump versions to dev, including changing the doc-install target to "dev"
...
instead of "latest"
2015-03-26 13:48:59 +01:00
holger krekel
d2a8866bce
bump verrsion to python2.7, fix a too precise test for windows, regen docs
2015-03-26 09:34:10 +01:00
Anatoly Bubenkov
d94a29e866
merge almarklein/default
2015-03-23 21:25:10 +01:00
Almar Klein
a9b7de8bf0
address reviewer comments
2015-03-21 17:26:23 +01:00
Almar Klein
0fc75c9622
Storing sys.last_traceback: test, docs and changelog
2015-03-21 17:06:24 +01:00
holger krekel
03c3930734
add a project someone reported a while ago
2015-03-17 13:21:44 +01:00
Bruno Oliveira
eead0365b5
Merged in parametrized-fixture-override (pull request #257 )
...
allow to override parametrized fixtures with non-parametrized ones and vice versa
2015-03-12 09:40:56 -03:00
Benjamin Peterson
0c2dfb9683
update website sidebar links for repo move
...
--HG--
branch : link-update
2015-03-11 20:04:14 -05:00
Anatoly Bubenkov
d1005ebb8f
document fixture override techniques
...
--HG--
branch : parametrized-fixture-override
2015-03-01 18:54:24 +01:00
Bruno Oliveira
200fe072f1
moved pytest-plugs to plugincompat
...
also plugins_index is ready for 2.7.0 release
--HG--
branch : plugincompat-move
2015-02-28 17:22:42 -03:00
holger krekel
ff9ec13ddb
mention "pytestdotorg" twitter account
2015-02-28 20:02:31 +01:00
Ronny Pfannschmidt
1e6e373913
Merged in issue616 (pull request #252 )
...
fix issue616 - conftest visibility fixes.
2015-02-28 10:02:58 +01:00
holger krekel
e510eb0d45
a few more fixes
2015-02-27 16:42:03 +01:00
holger krekel
2e2d6a8bef
make "Adopt pytest" note more prominent, fix link from plugins page.
2015-02-27 15:49:25 +01:00
holger krekel
dbb58b39d9
switch to push to latest docs, because otherwise people get misled to old repos which don't exist anymore
...
--HG--
branch : docs_community
2015-02-27 12:53:14 +01:00
holger krekel
c3ca44b46f
change links to go to the new pytest-dev bitbucket team's repo location
...
--HG--
branch : docs_community
2015-02-27 12:27:40 +01:00
holger krekel
f6df3b0b97
added documentationo on the new pytest-dev teams on bitbucket and
...
github. See https://pytest.org/latest/contributing.html (tentative)
Thanks to Anatoly for pushing and initial work on this.
--HG--
branch : docs_community
2015-02-27 11:54:17 +01:00
holger krekel
e9d4853296
Merged contributing-community into default
2015-02-27 11:17:14 +01:00
holger krekel
d73e689991
fix issue616 - conftest visibility fixes. This is achieved by
...
refactoring how nodeid's are constructed. They now are always
relative to the "common rootdir" of a test run which is determined by
finding a common ancestor of all testrun arguments.
--HG--
branch : issue616
2015-02-26 21:56:44 +01:00
holger krekel
aa757f7715
change "install" targets to use pytest-dev user so that Brianna, Ronny, me
...
and others can push to pytest.org
2015-02-23 16:14:54 +01:00
Ronny Pfannschmidt
4222a806f1
Merged in LucasC/pytest (pull request #247 )
...
Fixing description of --dist=load in the --help documentation for the xdist plugin
2015-02-22 20:04:05 +01:00
Ronny Pfannschmidt
f1c9554f42
merge
2015-02-22 12:29:26 +01:00
Ronny Pfannschmidt
3d0b756877
merge in the 2.6 maintenance branch
2015-02-22 11:45:07 +01:00
Lucas Cimon
5025478ac2
Fixing description of --dist=load in the --help documentation for the xdist plugin
2015-02-14 00:07:19 +01:00
Jeff Widman
6a237bd49f
Changed back to "parametrized" to match the API
...
--HG--
branch : jeffwidman/fix-faq-grammar-and-spelling-1423641159173
2015-02-11 19:27:51 +00:00
Jeff Widman
89710b4901
Fix: FAQ grammar and spelling
...
--HG--
branch : jeffwidman/fix-faq-grammar-and-spelling-1423641159173
2015-02-11 07:52:48 +00:00
Floris Bruynooghe
459d6e610c
Merged in davehunt/pytest/env-addopts (pull request #241 )
...
Support setting configuration using the PYTEST_ADDOPTS environment variable
2015-02-09 16:33:36 +00:00
Dave Hunt
d1adbf4a5c
Added documentation for PYTEST_ADDOPTS environment variable, updated CHANGELOG and AUTHORS.
...
--HG--
branch : env-addopts
2015-02-09 14:11:54 +00:00
Brianna Laugher
2b7fae2368
#676
...
Add docs page describing 'adopt pytest month'
--HG--
branch : adopt-pytest-docs
2015-02-09 11:59:15 +01:00
okin
d580f5bac8
Only one import on one line.
...
If this should show good practices, the code should not set a bad example ;)
--HG--
branch : okin/only-one-import-on-one-line-if-this-shou-1421239108222
2015-01-14 12:38:37 +00:00
holger krekel
e0251ecb41
regen docs
...
--HG--
branch : pytest-2.6
2014-10-24 15:08:43 +02:00
Floris Bruynooghe
8d19ccb56f
Merged in pfctdayelise/pytest/issue351 (pull request #161 )
...
Fixes issue351: Add ability to specify parametrize ids as a
callable, to generate custom test ids. + tests, docs
Hg branch merge
2014-10-22 23:18:01 +01:00
Bruno Oliveira
b928928942
added support for glob-style patterns to python_classes and python_functions config options
...
fixes #600
--HG--
branch : python-classes-glob
2014-10-16 19:27:10 -03:00
holger krekel
de7c97aa1e
Merged in tomviner/pytest (pull request #222 )
...
fix issue552: Add a note to the docs about marking single callables
2014-10-14 10:02:21 +02:00
TomV
857db415bc
fix some spelling mistakes
...
--HG--
branch : some_spelling_fixes
2014-10-13 23:16:26 +01:00
TomV
4cadc600d5
fix issue552: note about marking single callables
2014-10-12 19:07:03 +01:00
holger krekel
cea9367739
Merged in HolgerPeters/pytest (pull request #221 )
...
Make doctest flags configurable
2014-10-09 17:05:48 +02:00
Holger Peters
a37f9f19d4
link fix: Use restructured text :doc: link instead of html link
2014-10-09 16:59:42 +02:00
holger krekel
8c91ffc701
some docs and refined semantics for wrappers
2014-10-09 12:21:01 +02:00
Holger Peters
61caa4f776
Add documentation for doctest flags and remove dead code
2014-10-08 15:48:41 +02:00
Floris Bruynooghe
89de87dce1
Document the ids keyword for fixture parametrisation
...
--HG--
branch : issue351
2014-10-08 00:43:27 +01:00
holger krekel
dd1ee22293
Merged in nicoddemus/pytest/defer-hook-example (pull request #216 )
...
Documentation for new hooks and how to use them
2014-10-06 11:55:35 +02:00
holger krekel
f85648bbf8
Merged in nicoddemus/pytest/defer-hook-example (pull request #216 )
...
Documentation for new hooks and how to use them
2014-10-06 11:55:35 +02:00
Bruno Oliveira
7f93063945
Adding docs on how to properly add new hooks and using them in 3rd party plugins
2014-10-04 14:48:19 -03:00
Bruno Oliveira
d6d2e6c615
Adding docs on how to properly add new hooks and using them in 3rd party plugins
...
--HG--
branch : defer-hook-example
2014-10-04 14:48:19 -03:00
Bruno Oliveira
e9f240a9a3
added plugins_index page generation to tox
...
Also minor improvements in the page:
- Removed version from plugin name
- Using "home" instead of "repo", seems more appropriate
- Reduced default verbosity
2014-09-27 12:28:29 -03:00
Bruno Oliveira
37631dbfa0
added plugins_index page generation to tox
...
Also minor improvements in the page:
- Removed version from plugin name
- Using "home" instead of "repo", seems more appropriate
- Reduced default verbosity
2014-09-27 12:28:29 -03:00