Test-More / TB2

Test::Builder version 2, the next generation of building testing modules in Perl
Other
1 stars 0 forks source link

Expose the History object inside Test::Builder #93

Closed schwernbot closed 10 years ago

schwernbot commented 10 years ago

From: @schwern Date: Saturday Aug 28, 2010 at 04:20 GMT Orig: https://github.com/Test-More/test-more/issues/45

Offer a $builder->history accessor.

schwernbot commented 10 years ago

From: @schwern Date: Monday Nov 14, 2011 at 22:14 GMT Orig: https://github.com/Test-More/test-more/issues/45#issuecomment-2737545

The code is there to access it, it needs to be documented.

Don't make it a setter, that's more complicated. There's two modes of history setting: a totally new and unrelated History object, and a new type of History object which inherits the old History object's history. The first erases history. The second retains history but changes how it is recorded. See Test::Builder2::History->consume.

schwernbot commented 10 years ago

From: @lecstor Date: Wednesday Nov 16, 2011 at 05:53 GMT Orig: https://github.com/Test-More/test-more/issues/45#issuecomment-2756050

just copy doc from Test::Builder2? "A convenience method to access the first History object associated with the C.

Note that there can be more than one."

schwernbot commented 10 years ago

From: @schwern Date: Wednesday Nov 16, 2011 at 06:09 GMT Orig: https://github.com/Test-More/test-more/issues/45#issuecomment-2756142

Pretty much. It would be good if they both properly linked to History as in L<Test::Builder2::History>.

Oh... there can't be more than one. Used to be that way. Mind fixing that?

schwernbot commented 10 years ago

From: @lecstor Date: Wednesday Nov 16, 2011 at 06:12 GMT Orig: https://github.com/Test-More/test-more/issues/45#issuecomment-2756157

will fix both accordingly.

schwernbot commented 10 years ago

From: @schwern Date: Wednesday Nov 16, 2011 at 09:01 GMT Orig: https://github.com/Test-More/test-more/issues/45#issuecomment-2757291

Thanks muchly