| Version 9 (modified by bowtie, 2 years ago) (diff) |
|---|
Description
Support for creating and running unit tests
You need to run perl *.PL first (see Test 2 below).
Run -> Run Tests
This will process your Skeleton and your additional test files, located within /t directory structure
| Skeleton | Action |
|---|---|
| Module::Build | ./Build test |
| Module::Install | make test |
| ExtUtils::MakeMaker | make test |
Run -> Run Build and Tests
This will Build/make depending on your Skeleton.
| Skeleton | Action |
|---|---|
| Module::Build | ./Build |
| Module::Install | make |
| ExtUtils::MakeMaker | make |
followed by Run Tests.
Run -> Run This Test
This will process your Active test script in Padre editor, test script should have .t extension (otherwise option, will be greyed out)
| Skeleton | Action |
|---|---|
| Any | prove -bv $filename |
Tickets
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #1432 | fixed | task manager test segfaults with DBI >= 1.619 | alias, adamk | dod |
| #1210 | fixed | 76-preferences.t fails while passing all the tests | szabgab | claudio |
| #1202 | fixed | Add separation bar | bowtie | |
| #1187 | fixed | Run This Test | szabgab | bowtie |
| #281 | wontfix | TDD using Padre | szabgab | |
| #65 | fixed | Add capability to run the unit tests of a project | szabgab |
Test
Setup
- Module::Build (MB)
- module-starter --mb --module=Module::Build --author="Fred Bloggs" --email=fb@bloggs.com --verbose
- ExtUtils::MakeMaker (EUMM)
- module-starter --eumm --module=ExtUtils::MakeMaker --author="Fred Bloggs" --email=fb@bloggs.com --verbose
- Module::Install (MI)
- module-starter --mi --module=Module::Install --author="Fred Bloggs" --email=fb@bloggs.com --verbose
Test
All test run in order left -> right
Test 1
run against a vanilla build.
| Run This Test | Run Test | Run Build and Test | Run Tests | |
|---|---|---|---|---|
| EUMM | Pass | Fail | Fail | Fail |
| MB | Pass | Fail | Fail | Fail |
| MI | Fail | Fail | Fail | Fail |
Test 2
run against a vanilla build, followed by:
- EUMM perl Makefile.Pl
- MB perl Build.PL
- MI perl Makefile.PL
| Run This Test | Run Test | Run Build and Test | Run Tests | Run This Test | |
|---|---|---|---|---|---|
| EUMM | Pass | Fail | Pass | Pass | Pass |
| MB | Pass | Fail | Pass | Pass | Pass |
| MI | Fail | Fail | Pass | Pass | Pass |
Test 3
run against a vanilla build.
Padre/lib/Padre/Wx/Main.pm
sub on_run_this_test {
line 2590 approx.
$self->run_command("$prove -lv $filename");
| Run This Test | Run Test | Run Build and Test | Run Tests | |
|---|---|---|---|---|
| EUMM | Pass | Fail | Fail | Fail |
| MB | Pass | Fail | Fail | Fail |
| MI | Pass | Fail | Fail | Fail |
TODO
Attachments
-
runtest.png
(24.5 KB) -
added by bowtie 2 years ago.
Padre Run Tests
