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

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9921</bug_id>
          
          <creation_ts>2016-07-12 19:55:36 +0000</creation_ts>
          <short_desc>oe-selftest naming test guidelines</short_desc>
          <delta_ts>2020-06-19 13:08:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>5.99</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Benjamin Esquivel">benjamin.esquivel</reporter>
          <assigned_to name="Mark Morton">mark.morton</assigned_to>
          <cc>akuster</cc>
    
    <cc>benjamin.esquivel</cc>
    
    <cc>bluelightning</cc>
    
    <cc>francisco.j.pedraza.gonzalez</cc>
    
    <cc>humberto.ibarra.lopez</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>juan.m.cruz.alcaraz</cc>
    
    <cc>libertad.gonzalez.de.la.cruz</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63867</commentid>
    <comment_count>0</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-07-12 19:55:36 +0000</bug_when>
    <thetext>Write a set of guides for naming tests for mainly 2 reasons: to facilitate a filtering feature at test listing &amp; execution and to have a more consistent test list.

Currently, filtering would be highly ineffective due to the repetition of the fields in the test name. i.e. &quot;wic.Wic.test_wic_image_type&quot; this allows no differentiation of module/submodule. Another example: recipetool.RecipetoolAppendsrcTests.test_recipetool_appendsrcfile_srcdir_basic

This guide should be written at the QA wiki and should also trigger a modification of the existing tests.

Test naming guide proposal for oe-selftest:

Test name composition: &lt;Module&gt;.&lt;submodule&gt;.&lt;testname&gt; (as currently implemented).

  - Module: the python library where the classes/tests live. Name it after the component you are applying tests to: i.e. bitbake, wic, sstates, etc. 

  - Submodule: a division within the library (usually the class)that tests a specific part of the module. i.e. from bitbake, test memres.

  - test name: the function that implements the test, named after the feature that it tests. several tests can exist for the same feature (negative, boundary, etc) so it can be name&lt;consecutive&gt; like name01, name02.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76339</commentid>
    <comment_count>1</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-08-30 15:48:44 +0000</bug_when>
    <thetext>Moved to 2.5 due resources constraint</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85915</commentid>
    <comment_count>2</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-12-22 19:42:48 +0000</bug_when>
    <thetext>not sure if this is done but we should doc this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86197</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-01-30 16:20:44 +0000</bug_when>
    <thetext>Mark, for the test manual according to Richard.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87529</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Morton">mark.morton</who>
    <bug_when>2020-06-19 13:08:53 +0000</bug_when>
    <thetext>This is now complete and added to the yocto-docs repository.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>