Name : perl-Test-Cukes
| |
Version : 0.11
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2023-07-20 16:17:30
|
Group : Development/Libraries/Perl
| Source RPM : perl-Test-Cukes-0.11-lp155.1.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : BBD test tool inspired by Cucumber
|
Description :
Test::Cukes is a testing tool inspired by Cucumber (http://cukes.info). It lets your write your module test with scenarios. It may be used with Test::More or other family of TAP \'Test::*\' modules. It uses Test::Builder::note function internally to print messages.
This module implements the Given-When-Then clause only in English. To uses it in the test programs, feed the feature text into \'feature\' function, defines your step handlers, and then run all the tests by calling \'runtests\'. Step handlers may be defined in separate modules, as long as those modules are included before \'runtests\' is called. Each step may use either \'assert\' or standard TAP functions such as \'Test::Simple\'\'s \'ok\' or \'Test::More\'\'s \'is\' to verify desired result. If you specify a plan explicitly, you should be aware that each step line in your scenario runs an additional test, and will therefore add to the number of tests you must indicate.
If any assertion in the Given block failed, the following \'When\' and \'Then\' blocks are all skipped.
You don\'t need to specify the number of tests with \'plan\'. Each step block itself is simply one test. If the block died, it\'s then considered failed. Otherwise it\'s considered as passing.
In the call to Test::Cukes::runtests, done_testing will automatically be called for you if you didn\'t specify a plan.
Test::Cukes re-exports \'assert\' function from \'Carp::Assert\' for you to use in the step block.
For more info about how to define feature and scenarios, please read the documents from http://cukes.info.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.5/noarch |