Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joemcmahon/devel-command-tdump
Create and save Test::More tests from the debugger
https://github.com/joemcmahon/devel-command-tdump
Last synced: 11 days ago
JSON representation
Create and save Test::More tests from the debugger
- Host: GitHub
- URL: https://github.com/joemcmahon/devel-command-tdump
- Owner: joemcmahon
- License: other
- Created: 2009-08-20T23:31:52.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2009-08-20T23:33:09.000Z (over 15 years ago)
- Last Synced: 2024-10-28T15:48:17.593Z (about 2 months ago)
- Language: Perl
- Homepage:
- Size: 85.9 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
Devel::Command::Tdump implements a debugger command, tdump, to
automatically load Test::More into the debugger and to selectively capture
portions of the debugger history to build a new Test::More-based test.If you use Test::More's tests (is(), ok(), etc.) during a debugger session,
tdump can then dump these tests out to a test file (you pick a name) with the
proper test plan already in place.Like this:
DB<5> use_ok("MyModule");
ok 1 - use MyModule;DB<6> $arg1 = "something";
DB<7> # set first argument
DB<8> $arg2 = "yadda yadda";
DB<9> # Set second argument
DB<10> $try_it = MyModule->new($arg1, $arg2)
DB<11> # Create an object
DB<12> isa_ok($try_it, "MyModule")
DB<13> tdump "001basic.t"
Recording tests for this session in 001basic.t ... done (2 tests).DB<14>
To install:
perl Makefile.PL
make
make test
make install