PyUnit provides a mechanism for this: the testsuite, represented by the class TestSuite in the
テストスイートは、 - Python
InPyUnit, test cases are represented by instances of the TestCase class in the PyUnitでは、テストケースは - Python
The unittest module provides classes that make it easy to support these qualities for a set of tests.To achieve this, PyUnit supports some important concepts: PyUnitでは、テストを以下のような構成で開発します。 - Python
PyUnit provides abase class, TestCase, which may be used to create new testcases.
テストケースを作成する場合は、PyUnitが提供するTestCaseクラスを基底クラスとして利用することができます。 - Python
The test case and test fixture concepts are supported through the TestCase and FunctionTestCase classes; the formershould be used when creating new tests, and the latter can be used whenintegrating existing test code with a PyUnit-driven framework. PyUnitでは、テストケースとfixtureを、TestCaseクラスとFunctionTestCaseクラスで提供しています。 TestCaseクラスは新規にテストを作成する場合に使用し、FunctionTestCaseは既存のテストをPyUnitに組み込む場合に使用します。 - Python
Note:PyUnit supports the use of AssertionError as an indicator of test failure, but does not recommend it. 注意:PyUnitはAssertionErrorによるテストの失敗検出もサポートしていますが、推奨されません。 - Python
The classTestResult is provided for use as the result object.
PyUnitではデフォルトでテスト結果を標準エラーに出力するTextTestRunnerをサンプルとして実装しています。 - Python
The Python unit testing framework, often referred to as ``PyUnit,'' is a Python language version of JUnit, by Kent Beck and Erich Gamma.JUnit is, in turn, a Java version of Kent's Smalltalk testing framework. このPython単体テストフレームワーク は``PyUnit''とも呼ばれ、Kent Beck とErich GammaによるJUnitのPython版です。 JUnitはまたKentのSmalltalk用テストフレームワークのJava版で、どちらもそれぞれの言語で業界標準の単体テストフレームワークとなっています。 - Python
Test case instances are grouped together according to the features they test. PyUnitではテストスイートによってテストケースインスタンスをテスト対象の機能によってグループ化することができます。 - Python
Each is the de facto standard unit testing framework for its respective language.PyUnit supports test automation, sharing of setup and shutdown code for tests, aggregation of tests into collections, and independence of the tests from the reporting framework. PyUnitでは、テストの自動化・初期設定と終了処理の共有・テストの分類・テスト実行と結果レポートの分離などの機能を提供しており、unittestのクラスを使って簡単にたくさんのテストを開発できるようになっています。 - Python
Copyright 2001-2004 Python Software Foundation.All rights reserved. Copyright 2000 BeOpen.com.All rights reserved. Copyright 1995-2000 Corporation for National Research Initiatives.All rights reserved. Copyright 1991-1995 Stichting Mathematisch Centrum.All rights reserved.