Changes between Version 10 and Version 11 of Features/AutomatedBuildAndTest


Ignore:
Timestamp:
Mar 28, 2011, 10:54:49 PM (3 years ago)
Author:
bowtie
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Features/AutomatedBuildAndTest

    v10 v11  
    1 == Description == 
     1[[PageOutline(1-4)]] 
     2== Description  
     3 
     4Support for creating and running unit tests \\ 
     5Please take the following snipetts form Perldoc into account whilst reading this page. 
     6 
     7* @INC 
     8The array @INC contains the list of places that the do EXPR , require, or use constructs look for their library files. It initially consists of the arguments to any -I command-line switches, followed by the default Perl library, probably /usr/local/lib/perl, followed by ".", to represent the current directory. ("." will not be appended if taint checks are enabled, either by -T or by -t .) If you need to modify this at runtime, 
     9 
     10* prove option switches 
     11||-v||--verbose||Print all test lines.|| 
     12|| -l||--lib||Add 'lib' to the path for your tests (-Ilib).|| 
     13|| -b||--blib||Add 'blib/lib' and 'blib/arch' to the path for your tests|| 
     14 \\ 
     15 
    216[[Image(runtest.png)]] \\ 
    3 Support for creating and running unit tests \\ 
    4 You need to run perl *.PL first (see [#test2 Test 2] below). 
    517 
    6 === '''Run -> Run Tests''' 
     18 
     19=== Run -> Run Tests 
    720 
    821This will process your Skeleton and your additional test files, located within /t directory structure 
    922 
    1023||=Skeleton=||=Action=|| 
    11 ||{{{Module::Build}}}||./Build test|| 
    12 ||{{{Module::Install}}}||make test|| 
    13 ||{{{ExtUtils::MakeMaker}}}||make test|| 
     24||Module::Build||./Build test|| 
     25||Module::Install||make test|| 
     26||ExtUtils::{{{MakeMaker}}}||make test|| 
    1427 
    15 === '''Run -> Run Build and Tests''' 
     28=== Run -> Run Build and Tests 
    1629 
    1730This will Build/make depending on your Skeleton. 
    1831 
    1932||=Skeleton=||=Action=|| 
    20 ||{{{Module::Build}}}||./Build|| 
    21 ||{{{Module::Install}}}||make|| 
    22 ||{{{ExtUtils::MakeMaker}}}||make|| 
     33||Module::Build||./Build|| 
     34||Module::Install||make|| 
     35||ExtUtils::{{{MakeMaker}}}||make|| 
    2336 
    2437followed by Run Tests. 
    2538 
    2639 
    27 === '''Run -> Run This Test''' 
     40=== Run -> Run This Test 
    2841 
    2942This will process your Active test script in Padre editor, test script should have .t extension (otherwise option, will be greyed out) 
     
    3750[[TicketQuery(component=Automated Build and Test,order=id,desc=1,format=table,col=resolution|summary|owner|reporter)]] 
    3851 
    39 == Test == 
     52== Test 
    4053 
    4154=== Setup 
    42 * {{{Module::Build}}} (MB) 
    43  * module-starter --mb --module={{{Module::Build}}} --author="Fred Bloggs" --email={{{fb@bloggs.com}}} --verbose 
    44 * {{{ExtUtils::MakeMaker}}} (EUMM) 
    45  * module-starter --eumm --module={{{ExtUtils::MakeMaker}}} --author="Fred Bloggs" --email={{{fb@bloggs.com}}} --verbose 
    46 * {{{Module::Install}}} (MI) 
    47  * module-starter --mi --module={{{Module::Install}}} --author="Fred Bloggs" --email={{{fb@bloggs.com}}} --verbose 
     55* Module::Build (MB) 
     56 * {{{module-starter --mb --module=Module::Build --author="Fred Bloggs" --email=fb@bloggs.com --verbose}}} 
     57* ExtUtils::{{{MakeMaker}}} (EUMM) 
     58 * {{{module-starter --eumm --module=ExtUtils::MakeMaker --author="Fred Bloggs" --email=fb@bloggs.com --verbose}}} 
     59* Module::Install (MI) 
     60 * {{{module-starter --mi --module=Module::Install --author="Fred Bloggs" --email=fb@bloggs.com --verbose}}} 
    4861 
    4962or you could use, Padres Skeleton Builder ProjectSkeletonGeneration 
    5063 
    51 === Test 
     64---- 
    5265All test run in order left -> right 
    5366 
    54 ==== Test 1 
     67=== Test 1 
    5568run against a [wiki:Wiki/VanillaBuild vanilla build]. 
    5669 
     
    5972||MB=||=Pass=||=Fail=||=Fail=||=Fail=|| 
    6073||MI=||=Fail=||=Fail=||=Fail=||=Fail=|| 
    61  
    62 ==== Test 2 [=#test2] 
     74---- 
     75=== Test 2 [=#test2] 
    6376run against  a [wiki:Wiki/VanillaBuild vanilla build], followed by: 
    6477* EUMM perl Makefile.Pl 
     
    7083||MB=||=Pass=||=Fail=||=Pass=||=Pass=||=Pass=|| 
    7184||MI=||=Fail=||=Fail=||=Pass=||=Pass=||=Pass=|| 
    72  
    73 ==== Test 3 
     85---- 
     86=== Test 3 
    7487run against a [wiki:Wiki/VanillaBuild vanilla build]. 
    7588 
    76 Padre/lib/Padre/Wx/Main.pm 
    77  
    78 sub on_run_this_test { 
    79  
     89Padre/lib/Padre/Wx/Main.pm \\ 
     90sub on_run_this_test { \\ 
    8091line 2590 approx. 
    81  
     92{{{#!perl 
    8293$self->run_command("$prove -lv $filename"); 
     94}}} 
    8395 
    8496 
     
    8799||MB=||=Pass=||=Fail=||=Fail=||=Fail=|| 
    88100||MI=||=Pass=||=Fail=||=Fail=||=Fail=|| 
    89  
     101---- 
    90102 
    91103== TODO ==