Green

Latest version: v4.0.2

Safety actively analyzes 687881 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 12 of 16

2.0.2

20 August 2015

- Captured stdout and stderr is reported properly once again. Regression in
2.0.0. Resolves issue 76.

- Better capturing and reporting of exceptions that escape the testing
framework.

- Added screenshots to the readme file. Resolves issue 78.

- Put the gitter badge inline with the other badges on the readme.

- Ignore build failures on the alpha OS X builders TravisCI suddenly (and
finally) turned on for us. They don't even have python installed yet...

- Use a consistent tagline for the project everywhere ("Green is a clean,
colorful, fast python test runner.")

2.0.1

30 July 2015

- Handled the case where a module could be discovered by directory searching by
the main process but not by module name by the subprocess. Instead of
crashing the subprocess and hanging, we now handle it and report it as an
importing problem. One cause of this problem is forgetting your __init__.py
Fixes issue 74.

- Improved some of our own unit tests to follow more best practices. Fixes
issue 62.;

2.0.0

24 July 2015

- BREAKING CHANGE: Major overhaul of the multiprocessing system. Tests always
run in a separate worker process, even when only one process is specified.
The default number of processes is now the number of logical processors
detected instead of 1. Entire modules are now run in the same worker process
by default to avoid both the overhead of multiple processes loading the same
module and the overhead of running module and class setUp/tearDown multiple
times redundantly. Classes or methods specified individually on the
command-line will still be run in their own worker process. A ton of credit
for this feature needs to go to Sam Spilsbury, who put in considerable time
and effort to actually code up the initial pull request. Fixes
issues 68, 70.

- BREAKING CHANGE: Due the fact that no one uses it that I can tell and I don't
want to maintain it, the `-m/--html` option has been removed.

- BREAKING CHANGE: `-o/--omit-patterns` now adds patterns to the default
coverage omit list instead of replacing the default list.

- `-O/--clear-omit` was added to clear the default coverage omit list.

- `-k/--no-skip-report` was added to suppress the skip report if desired.

- Added a gitter chatroom link to the readme.

- Support for acquiring and releasing arbitrary resources via the
`-i/--initializer` and `-z/--finalizer` options. Use it to setup/teardown
things that an individual worker process will need exclusive access to apart
from the other worker processes.

- We're back at 100% self-test coverage again. Yay!!!

- Twisted's skip functionality is caught and recorded as skips instead of
failures, if your `TestCase` subclasses `twisted.trial.unittest.TestCase` and
sets the class attribute `.skip` to `True`, or a test raises
`twisted.trial.unittest.SkipTest`.

- Better handling of outside-of-test exceptions that occur inside worker
processes.

- We now capture stderr that is emitted during tests and present it after tests
have run, just like we do with stdout.

- Capturing stdout in worker processes more consistently works (no known bugs
left).

- The headers for stdout and stderr are now yellow, for better color scheme
consistency (and so they don't get confused with skip headers).

- Skip report headers now display the dotted test name in bold, just like other
headers do. We are so consistent!

- Fixed the skip report so it goes to the stream instead of stdout.

- Disabled the annoying "Coverage.py warning: No data was collected." message
that started happening a lot, even though coverage was working just fine.

- Colors now work on AppVeyor builds, all hail the pretty colors! (Ironically,
they don't support Windows ansi colors, they wrote their own interpreters for
posix-style color escape codes.)

- We now "close" the process pool instead of "terminating" it, which results in
much better behavior in pypy and Windows, especially for things like tearDown
stuff.

1.11.0

18 June 2015

- Added support for pypy3. Fiixes issue 63.

- Disabled the virtual-env aspect of test_versions when run in Travis-CI, which
is already in a virtualenv.

1.10.0

17 June 2015

- Virtualenv directories are now skipped during test discovery, so you can now
use discovery on projects that contain one or more virtualenv directories
inside of them.

- Green *always* runs tests in a separate process now, though by default it
still (currently) defaults to only *one* separate process, to maximize
compatibility with large suites that already assume tests are run sequentially.

- Green will now catch exceptions that the test framework doesn't handle and
report them as test failures. Specifically, if your test case subclasses
`testtools.TestCase` from the popular `testtools` project, then `SystemExit`
exceptions will escape the TestCase. Green will catch these exceptions and
report them as failures. The one special-case is KeyboardInterrupt, which
Green catches and interprets as a desire to terminate testing, and stops the
test run.

- Changed the `-m/--html` help text to be a deprecation warning. If you would
like this feature to stay, please create an issue stating so at
https://github.com/CleanCut/green/issues/new

1.9.4

15 June 2015

- Added a deprecation warning for the `-m/--html` option. Unless I get some
credible requests to leave the functionality, then I am going to proceed with
removing it under the assumption that no one uses it (and I don't want to
maintain complex, unused code).

- Investigated an issue with `SystemExit` and `KeyboardInterrupt` halting the
python process when your test subclasses `testtools.TestCase`. Turns out
that that is a design decision made by the testtools devs that they want those
exceptions to stop everything. So we won't interfere with their desires. If
you don't like the behavior, either stop subclassing `testtools.TestCase` or
simply catch those two exceptions in your own tests.

Page 12 of 16

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.