Test::Spec, Test Using a Declarative Testing Framework
Test::Spec
- Julian's team partner (Dan Muey) does Test::Spec a lot
describe
before
, aroundit
- One assertion inside, usually
- Julian wrote tests to cover
File::Copy::Recursive
- Used an example with
Path::Tiny
- Build directory tree for copies
- Used an example with
File::Copy::Recursive
handles permissions and such as well- share in the describe makes data available to nested pieces
- Constructs the ok messages from the nested describes and its.
- Need to call
runtests
to make the tests in the file run shared_examples_for
- in spec_helpers
- called by
it_should_behave_like
arounds
match as expected- If you add a message to the assertion, it replaces the generated message
- Without the sub, it shows as unimplemented
before each
andafter each
before all
andafter all
- Supports
xit
(disabled test)
We had 7 people attending this month. As always, we'd like to thank cPanel, L.L.C for providing the meeting space and food for the group.