PloneDocumentation
  • Documentation
  • Appendices
  • older manuals
  • PloneTestCase tests
  • Previous
  • Next

Warning

This version is valid for an outdated version of Plone: 3.X. Use the Version drop-down above to go to the Plone 6, Plone 5 or Plone 4 versions

  • Introduction
  • Working with Content
  • Adapting & Extending Plone
  • Managing, Administration of Plone
  • Developing for Plone
  • Appendices
    • Glossary
    • Error Reference
    • older manuals
      • ArchGenXML
      • Buildout
      • Using zope.formlib
      • zope.formlib
      • Zope 2 vs. Zope 3 practices
      • Pluggable Authentication Service
      • Portlets
      • PloneTestCase tests
        • Introduction
        • A brief example
        • Telling stories with doctests
        • Types of tests
        • Running tests
        • Writing unit tests
        • Testing a Zope 3 component with a separate doctest file
        • Writing a PloneTestCase unit/integration test
        • Integration doctests using PloneTestCase
        • Functional and system tests with zope.testbrowser
        • Using zope.testrecorder to record functional tests
        • Tips for using zope.testrecorder
        • Determining the Code Coverage of your Test Suite
        • If what you really want is eye-candy
        • Testing examples
      • Zope 2 internals
  • About this documentation
  • License for Plone Documentation
  • Asking for help
Table Of Content

PloneTestCase tests¶

Description

This tutorial will explain how to write safer, better code that makes you look more professional. That's right - it's time to write tests, for everything you do. Don't worry, it's not boring or complicated, you just need to learn how.

Warning

Technologies presented here are for Plone 3.x and older.

For up-to-date testing best pratices read about plone.app.testing.

  • Introduction
  • A brief example
  • Telling stories with doctests
  • Types of tests
  • Running tests
  • Writing unit tests
  • Testing a Zope 3 component with a separate doctest file
  • Writing a PloneTestCase unit/integration test
  • Integration doctests using PloneTestCase
  • Functional and system tests with zope.testbrowser
  • Using zope.testrecorder to record functional tests
  • Tips for using zope.testrecorder
  • Determining the Code Coverage of your Test Suite
  • If what you really want is eye-candy
  • Testing examples
  • Documentation
  • Appendices
  • older manuals
  • PloneTestCase tests
  • Previous
  • Next
Further help resources:
  • Community discussion
  • Stackoverflow
  • IRC Chat
More info on the Plone project:
  • Plone Foundation
  • Success Stories
  • Providers & Consultants
About this documentation:
  • Contribute
  • These docs on Github
Download:
  • Plone
  • Plone add-ons
Plone

The text and illustrations in this website are licensed by the Plone Foundation under a Creative Commons Attribution 4.0 International license. Plone and the Plone® logo are registered trademarks of the Plone Foundation, registered in the United States and other countries. For guidelines on the permitted uses of the Plone trademarks, see https://plone.org/foundation/logo All other trademarks are owned by their respective owners. Hosted by Rackspace

This page uses Google Analytics to collect statistics. You can disable it by blocking the JavaScript coming from www.google-analytics.com.