/NEWS_0.9

https://bitbucket.org/jpellerin/nose/ · text · 59 lines · 43 code · 16 blank · 0 comment · 0 complexity · c9e90c3459d8b745cdb92d57cdad20f6 MD5 · raw file

  1. New in version 0.9
  2. ------------------
  3. 0.9 Final is here!
  4. ==================
  5. nose 0.9 includes a host of new features, as well as numerous
  6. backwards-incompatible changes to interfaces and implementation.
  7. Thanks to the many folks who have contributed patches and ideas and made bug
  8. reports for the development version of 0.9, especially Mika Eloranta, Jay
  9. Parlar, Kevin Dangoor, Scot Doyle, Titus Brown and Philip J.Eby.
  10. Here's a quick rundown of what's new in 0.9
  11. - Plugins
  12. The most important new feature is support for plugins using setuptools
  13. entrypoints. nose plugins can select and load tests (like the builtin
  14. doctest plugin), reject tests (like the builtin attrib plugin, contributed
  15. by Mika Eloranta, that allows users to select tests by attribute),
  16. watch and report on tests (like the builtin coverage and profiler plugins),
  17. completely replace test result output (like the html result plugin in the
  18. examples directory) or any combination of the above. Writing plugins is
  19. simple: subclass nose.plugins.Plugin and implement any of the methods in
  20. nose.plugins.IPluginInterface.
  21. - Better compatibility with unittest
  22. Test loading has been consolidated into a test loader class that is drop-in
  23. compatible with unittest.TestLoader. Likewise test result output, including
  24. output capture, assert introspection, and support for skipped and deprecated
  25. tests, in nose.result.TextTestResult. If you want those features and not the
  26. rest of nose, you can use just those classes. nose.main() has also been
  27. rewritten to have the same signature as unittest.main().
  28. - Better command line interface
  29. Command line test selection is more intuitive and powerful, enabling easy
  30. and correct running of single tests while ensuring that fixtures (setup and
  31. teardown) are correctly executed at all levels. No more -f -m or -o options:
  32. now simply specify the tests to run::
  33. nosetests this/file.py that.module
  34. Tests may be specified down to the callable::
  35. nosetests this/file.py:TestClass that.module:this_test
  36. nosetests that.module:TestClass.test_method
  37. There are also new options for dropping into pdb on errors or failures, and
  38. stopping the test run on the first error or failure (thanks to Kevin Dangoor
  39. for the idea).
  40. - More!
  41. Helpful test decorators and functions in nose.tools. Support for generators
  42. in test classes. Better import path handling -- that you can shut off!
  43. Detailed verbose logging using the logging package. And more...