Skip to content

Commit

Permalink
added spider contracts to release notes and warn that its API is stil…
Browse files Browse the repository at this point in the history
…l subject to change
  • Loading branch information
pablohoffman committed Sep 29, 2012
1 parent 34f1477 commit 7458092
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/news.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _news:

Release notes
=============

Expand All @@ -6,6 +8,7 @@ Release notes

Scrapy changes:

- added :ref:`topics-contracts`, a mechanism for testing spiders in a formal/reproducible way
- added options ``-o`` and ``-t`` to the :command:`runspider` command
- documented :doc:`topics/autothrottle` and added to extensions installed by default. You still need to enable it with :setting:`AUTOTHROTTLE_ENABLED`
- major Stats Collection refactoring: removed separation of global/per-spider stats, removed stats-related signals (``stats_spider_opened``, etc). Stats are much simpler now, backwards compatibility is kept on the Stats Collector API and signals.
Expand Down
6 changes: 6 additions & 0 deletions docs/topics/contracts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
Spiders Contracts
=================

.. versionadded:: 0.15

.. note:: This is a new feature (introduced in Scrapy 0.15) and may be subject
to minor functionality/API updates. Check the :ref:`release notes <news>` to
be notified of updates.

Testing spiders can get particularly annoying and while nothing prevents you
from writing unit tests the task gets cumbersome quickly. Scrapy offers an
integrated way of testing your spiders by the means of contracts.
Expand Down

0 comments on commit 7458092

Please sign in to comment.