Changes between Version 10 and Version 11 of Features/AutomatedBuildAndTest
- Timestamp:
- 03/28/11 22:54:49 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Features/AutomatedBuildAndTest
v10 v11 1 == Description == 1 [[PageOutline(1-4)]] 2 == Description 3 4 Support for creating and running unit tests \\ 5 Please take the following snipetts form Perldoc into account whilst reading this page. 6 7 * @INC 8 The 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 2 16 [[Image(runtest.png)]] \\ 3 Support for creating and running unit tests \\4 You need to run perl *.PL first (see [#test2 Test 2] below).5 17 6 === '''Run -> Run Tests''' 18 19 === Run -> Run Tests 7 20 8 21 This will process your Skeleton and your additional test files, located within /t directory structure 9 22 10 23 ||=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|| 14 27 15 === '''Run -> Run Build and Tests'''28 === Run -> Run Build and Tests 16 29 17 30 This will Build/make depending on your Skeleton. 18 31 19 32 ||=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|| 23 36 24 37 followed by Run Tests. 25 38 26 39 27 === '''Run -> Run This Test'''40 === Run -> Run This Test 28 41 29 42 This will process your Active test script in Padre editor, test script should have .t extension (otherwise option, will be greyed out) … … 37 50 [[TicketQuery(component=Automated Build and Test,order=id,desc=1,format=table,col=resolution|summary|owner|reporter)]] 38 51 39 == Test ==52 == Test 40 53 41 54 === Setup 42 * {{{Module::Build}}}(MB)43 * module-starter --mb --module={{{Module::Build}}} --author="Fred Bloggs" --email={{{fb@bloggs.com}}} --verbose44 * {{{ExtUtils::MakeMaker}}} (EUMM)45 * module-starter --eumm --module={{{ExtUtils::MakeMaker}}} --author="Fred Bloggs" --email={{{fb@bloggs.com}}} --verbose46 * {{{Module::Install}}}(MI)47 * module-starter --mi --module={{{Module::Install}}} --author="Fred Bloggs" --email={{{fb@bloggs.com}}} --verbose55 * 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}}} 48 61 49 62 or you could use, Padres Skeleton Builder ProjectSkeletonGeneration 50 63 51 === Test 64 ---- 52 65 All test run in order left -> right 53 66 54 === =Test 167 === Test 1 55 68 run against a [wiki:Wiki/VanillaBuild vanilla build]. 56 69 … … 59 72 ||MB=||=Pass=||=Fail=||=Fail=||=Fail=|| 60 73 ||MI=||=Fail=||=Fail=||=Fail=||=Fail=|| 61 62 === =Test 2 [=#test2]74 ---- 75 === Test 2 [=#test2] 63 76 run against a [wiki:Wiki/VanillaBuild vanilla build], followed by: 64 77 * EUMM perl Makefile.Pl … … 70 83 ||MB=||=Pass=||=Fail=||=Pass=||=Pass=||=Pass=|| 71 84 ||MI=||=Fail=||=Fail=||=Pass=||=Pass=||=Pass=|| 72 73 === =Test 385 ---- 86 === Test 3 74 87 run against a [wiki:Wiki/VanillaBuild vanilla build]. 75 88 76 Padre/lib/Padre/Wx/Main.pm 77 78 sub on_run_this_test { 79 89 Padre/lib/Padre/Wx/Main.pm \\ 90 sub on_run_this_test { \\ 80 91 line 2590 approx. 81 92 {{{#!perl 82 93 $self->run_command("$prove -lv $filename"); 94 }}} 83 95 84 96 … … 87 99 ||MB=||=Pass=||=Fail=||=Fail=||=Fail=|| 88 100 ||MI=||=Pass=||=Fail=||=Fail=||=Fail=|| 89 101 ---- 90 102 91 103 == TODO ==
