doc/book/en/devrepo/testing.rst
branchstable
changeset 6065 eae118a84cc6
parent 5394 105011657405
child 6167 376e6c3d4002
equal deleted inserted replaced
6064:2a164fabcbfc 6065:eae118a84cc6
   143 
   143 
   144    Do not use the references kept to the entities created with a
   144    Do not use the references kept to the entities created with a
   145    connection from another !
   145    connection from another !
   146 
   146 
   147 Email notifications tests
   147 Email notifications tests
   148 -------------------------
   148 `````````````````````````
   149 
   149 
   150 When running tests potentially generated e-mails are not really sent
   150 When running tests potentially generated e-mails are not really sent
   151 but is found in the list `MAILBOX` of module
   151 but is found in the list `MAILBOX` of module
   152 `cubicweb.devtools.testlib`.
   152 `cubicweb.devtools.testlib`.
   153 
   153 
   210 * `ignored_relations`, may contain a list of relation types to skip
   210 * `ignored_relations`, may contain a list of relation types to skip
   211 * `application_rql`, may contain a list of rql expressions that
   211 * `application_rql`, may contain a list of rql expressions that
   212   auto_populate cannot guess by itself; these must yield resultsets
   212   auto_populate cannot guess by itself; these must yield resultsets
   213   against which views may be selected.
   213   against which views may be selected.
   214 
   214 
       
   215 Testing with other cubes
       
   216 ------------------------
       
   217 
       
   218 Sometimes a small component cannot be tested all by itself, so one
       
   219 needs to specify other cubes to be used as part of the the unit test
       
   220 suite. This is handled by the ``bootstrap_cubes`` file located under
       
   221 ``mycube\test\data``. One example from the `preview` cube::
       
   222 
       
   223  card, file, preview
       
   224 
       
   225 The format is:
       
   226 
       
   227 * possibly several empy lines or lines starting with ``#`` (comment lines)
       
   228 * one line containing a coma separated list of cube names.
       
   229 
   215 
   230 
   216 Test APIS
   231 Test APIS
   217 ---------
   232 ---------
   218 
   233 
   219 Using Pytest
   234 Using Pytest