On 15 Aug 2006, at 23:39, Ovid wrote:
[snip]
That threw me off when I first encountered jUnit. For much of the testing world, a 'test' is a collection of one or more asserts which verifies that a particular feature behaves the way that it should. So the following from Test::Class will confuse folks not used to Perl:

  sub foo : Tests(3) {
    my $self = shift;
    my $object = $self->class->new;
    can_ok $object, 'foo';
    ok $object->foo('bar'), '... and it should accept "bar"';
    is $object->something, 'something else',
        '... and it should properly update the object state';
  }

For most of the testing world I've seen outside of Perl, that would be a single test. Terminology will be a barrier.

Yup. With T::C I tried to always use the phrase "test method" for what the xUnit folk would normally call a "test" (although the mapping isn't exact).

Adrian

Reply via email to