The deprecation library provides a deprecated decorator and a
fail_if_not_removed decorator for your tests. Together, the two enable the
automation of several things:
1. The docstring of a deprecated method gets the deprecation details appended to
the end of it. If you generate your API docs direct from your source, you don't
need to worry about writing your own notification. You also don't need to worry
about forgetting to write it. It's done for you.
2. Rather than having code live on forever because you only deprecated it but
never actually moved on from it, you can have your tests tell you when it's
time to remove the code. The @deprecated decorator can be told when it's time
to entirely remove the code, which causes @fail_if_not_removed to raise an
AssertionError, causing either your unittest or py.test tests to fail.
Clint is awesome. Crazy awesome. It supports colors, but detects if the session
is a TTY, so doesn't render the colors if you're piping stuff around.
Automagically.
Current Features:
* Little Documentation (bear with me for now)
* CLI Colors and Indents
* Extremely Simple + Powerful Column Printer
* Iterator-based Progress Bar
* Implicit Argument Handling
* Simple Support for Incoming Unix Pipes
* Application Directory management
Changes since 2.5.5:
Sat, Dec 2, 2018 - xdebug 2.6.0alpha1
+ Added features:
- Implemented issue #474: Added "memory" output to profiling files, to find out where memory is allocated.
- Implemented issue #575: Dump super globals contents to error log upon errors, just like when this would happen for stack traces.
- Implemented issue #964: Parse X-Forwarded-For for the first IP address when selecting the remote_connect_back host (Steve Easley).
- Implemented issue #990: Add DBGp: notifications for notices and warnings to be shown in IDEs.
- Implemented issue #1312: Implement extended_properties feature to remote debugging to support names and values with low ASCII values.
- Implemented issue #1323: Added xdebug.filename_format setting to configure the formatting of filenames when tracing.
- Implemented issue #1379: Added support for Unix domain sockets to xdebug.remote_host (Sara Golemon).
- Implemented issue #1380: Added xdebug_is_debugger_active() that returns true when debugger is connected.
- Implemented issue #1391: Added support for earlier stack frames through new argument for xdebug_call_* functions.
- Implemented issue #1420: Handle PHP 7.2's new methods for switch/case
- Implemented issue #1470: Added xdebug.remote_timeout to make connect timeout configurable.
- Implemented issue #1495: Make var_dump() also use the new xdebug.filename_format when formatting filenames.
+ Improvements:
- Implemented issue #847: Added support for "%s" specifier for xdebug.trace_output_name.
- Implemented issue #1384: Compile warning on Ubuntu 16.04 with GCC 5.4.x.
- Implemented issue #1401: Improved error message in case the connection breaks.
- Implemented issue #1430: Change DBGp tests to use TEST_PHP_EXECUTABLE instead of hard coded 'php'
- Implemented issue #1484: Use FD_CLOEXEC with debugging sockets to prevent FDs from leaking to forked processes (Chris Wright).
- Improve the foldexpr in xt.vim to fold lines correctly (Donie Leigh).
= Fixed bugs:
- Fixed issue #1272: property_get doesn't return @attributes for SimpleXMLElement.
- Fixed issue #1305: Property names with quotes can not be fetch while debugging.
- Fixed issue #1431: Fix "use after free" with in add_name_attribute_or_element.
- Fixed issue #1432: Fixed memory leak with xdebug_path_info_dtor.
- Fixed issue #1449: Debugging breaks with array element keys containing low-ASCII variables.
- Fixed issue #1471: Tracing crashes with return_assignments and ternairy operator.
- Fixed issue #1474: Crashes due to variable resolving/reading mechanism not taking care of temporary hash tables correctly (Nikita Popov, Derick).
- Fixed issue #1481: Fixed s390x and ppc64 builds (Remi Collet).
- Fixed issue #1486: Crash on ZEND_SWITCH_LONG / ZEND_SWITCH_STRING with more than 32 cases.
- Fixed issue #1496: Rewrite README.rst to be more clear on how to install and build Xdebug.
~ Changes:
- Fixed issue #1411: Use Error (Throwable) instead of fatal error when maximum nesting level is reached.
- Removed features:
- Implemented issue #1377: Drop support for PHP 5.5 and 5.6, only PHP 7 is now supported
pytest-relaxed provides 'relaxed' test discovery for pytest.
Has it ever felt strange to you that we put our tests in tests/, then name the
files test_foo.py, name the test classes TestFoo, and finally name the test
methods test_foo_bar? Especially when almost all of the code inside of tests/
is, well, tests?
This pytest plugin takes a page from the rest of Python, where you don't have
to explicitly note public module/class members, but only need to hint as to
which ones are private. By default, all files and objects pytest is told to
scan will be considered tests; to mark something as not-a-test, simply prefix
it with an underscore.
A tiny library to facilitate visitor implementation in Python (which are
slightly peculiar due to dynamic typing). In fact, it is so small, you may just
be better off copy and pasting the source straight into your project.
so it will show a stack dump of all threads running at the time. This is useful
when running tests under a continuous integration server or simply if you don't
know why the test suite hangs.
Note that while by default on POSIX systems py.test will continue to execute
the tests after a test has timed, out this is not always possible. Often the
only sure way to interrupt a hanging test is by terminating the entire process.
As this is a hard termination (os._exit()) it will result in no teardown, JUnit
XML output etc. But the plugin will ensure you will have the debugging output
on stderr nevertheless, which is the most important part at this stage.
Notes from py-unittest2:
There was a separate version of unittest2 for Python 3. This is no longer needed, but still exists on PyPI. This had the project name "unittest2py3k" but uses the same package name ("unittest2").
IDE for a programming language, last release 2005, no homepage.
I can't even find a good resource on the language ("while") this IDE
is for, and it is broken since there is no supported jdk in pkgsrc.