全部搜尋項
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: libtest-roo-perl  ]

套件:libtest-roo-perl(1.004-2)

libtest-roo-perl 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 libtest-roo-perl

維護小組:

外部的資源:

相似套件:

module for composable, reusable tests with roles and Moo

Test::Roo allows you to compose Test::More tests from roles. It is inspired by the excellent Test::Routine module, but uses Moo instead of Moose. This gives most of the benefits without the need for Moose as a test dependency.

Test files are Moo classes. You can define any needed test fixtures as Moo attributes. You define tests as method modifiers -- similar in concept to "subtest" in Test::More, but your test method will be passed the test object for access to fixture attributes. You may compose any Moo::Role into your test to define attributes, require particular methods, or define tests.

This means that you can isolate test *behaviors* into roles which require certain test *fixtures* in order to run. Your main test file will provide the fixtures and compose the roles to run. This makes it easy to reuse test behaviors.

For example, if you are creating tests for Awesome::Module, you could create the test behaviors as Awesome::Module::Test::Role and distribute it with your module. If another distribution subclasses Awesome::Module, it can compose the Awesome::Module::Test::Role behavior for its own tests.

No more copying and pasting tests from a super class! Superclasses define and share their tests. Subclasses provide their own fixtures and run the tests.

標籤: 軟體開發: Perl 開發, 函式庫, 實做語言: Perl

其他與 libtest-roo-perl 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 libtest-roo-perl

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 30。4 kB95。0 kB [檔案列表]