Skip to content

Latest commit

 

History

History
79 lines (49 loc) · 1.73 KB

testing-dexterity.rst

File metadata and controls

79 lines (49 loc) · 1.73 KB

Part 3: Testing Dexterity

Create simple Dexterity Type

Add Dexterity to the package (setup.py):

../../setup.py

Make sure dexterity is installed together with the package:

../../src/plonetraining/testing/profiles/default/metadata.xml

configure.zcml:

<includeDependencies package="." />

Create profiles/default/types directory:

$ mkdir profiles/default/types

Create Factory Type Information (FTI) for Task Type (profiles/default/types/Task.xml):

../../src/plonetraining/testing/profiles/default/types/Task.xml

Include Task FTI in Generic Setup Profile (profiles/default/types.xml):

../../src/plonetraining/testing/profiles/default/types.xml

Interface

interfaces.py:

../../src/plonetraining/testing/interfaces.py

Integration Test

tests/test_task.py:

../../src/plonetraining/testing/tests/test_task.py

Functional Test

tests/test_task.py:

../../src/plonetraining/testing/tests/test_task.py

Robot Test

tests/robot/test_task.robot:

../../src/plonetraining/testing/tests/robot/test_task.robot