<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>1048</bug_id>
          
          <creation_ts>2005-01-21 09:45:25 +0000</creation_ts>
          <short_desc>Additions to &quot;write tests&quot;</short_desc>
          <delta_ts>2005-04-28 11:53:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>QA</product>
          <component>QASpec-GL</component>
          <version>LC-2004-11-22</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>REMIND</resolution>
          
          
          <bug_file_loc>http://lists.w3.org/Archives/Public/www-qa/2005Jan/0013.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominique Hazael-Massieux">dom</reporter>
          <assigned_to name="Karl Dubost">karl</assigned_to>
          
          
          <qa_contact name="Karl Dubost">karl</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2868</commentid>
    <comment_count>0</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2005-01-21 09:45:25 +0000</bug_when>
    <thetext>&quot;5 Good Practice C: Write sample code or tests&quot; -- another technique
is to go back and create new tests for old sections once the sections
are better understood and more mature. It also helps to write tests
that check the interactions of different sections.

Also, especially when using test assertions, the temptation is to have
one (or more) tests per assertion. However, one must absolutely check
the _interactions_ of assertions, as that is where most bugs are
likely to be found. For example, the two assertions &quot;when X happens, A
must happen&quot; and &quot;when Y happens, B must happen&quot; can be tested
individually, but they must also be checked together, to ensure that
if X and Y both happen, first A happens then B happens, etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4103</commentid>
    <comment_count>1</comment_count>
    <who name="Karl Dubost">karl</who>
    <bug_when>2005-03-03 17:35:33 +0000</bug_when>
    <thetext>http://lists.w3.org/Archives/Public/www-qa-wg/2005Feb/0021.html

(dh) Mostly editorial, suggesting that an additional requirement is to  
go back an create tests for &quot;old&quot; sections, once they have matured. You  
also need to check interactions between tests, separate tests not  
enough
(tb) Do we want to recommend against having interactive assertions?
(dh) The idea of atomic assertions?
(tb) Right
(dm) That depends on the technology, for some technologies you have a  
necessary impact between things
(kd) The comment is good but a bit out of scope, it&apos;s about how to  
write good tests, not about Spec GL. We could add a line, not sure if  
we should change a lot of things. I take that action item</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4115</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karl</who>
    <bug_when>2005-03-03 19:28:49 +0000</bug_when>
    <thetext>http://lists.w3.org/Archives/Public/www-qa-wg/2005Feb/0028.html

       KD wrote something to clarify
       http://lists.w3.org/Archives/Public/www-qa-wg/2005Feb/0008
       There being no objections to his revisions, this item is now 
resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3650</commentid>
    <comment_count>3</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2005-04-28 11:53:49 +0000</bug_when>
    <thetext>setting version to LC in case of future use</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>