From 199e9125a420d8e42b15608b4ab8dc7dee3aef92 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 5 Jul 2020 16:39:42 -0400 Subject: [PATCH] Use `subtest` to group related tests This reduces the output of `make check`, making it easier to zero in on results of interest. --- t/parse_assignments.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/parse_assignments.pl b/t/parse_assignments.pl index e6e1477..d595459 100644 --- a/t/parse_assignments.pl +++ b/t/parse_assignments.pl @@ -48,8 +48,10 @@ my @test_cases = ( for my $tc (@test_cases) { my ($got_rest, %got_vars) = ddclient::parse_assignments($tc->{input}); - is(Dumper(\%got_vars), Dumper($tc->{want_vars}), "$tc->{name}: vars"); - is($got_rest, $tc->{want_rest}, "$tc->{name}: rest"); + subtest $tc->{name} => sub { + is(Dumper(\%got_vars), Dumper($tc->{want_vars}), "vars"); + is($got_rest, $tc->{want_rest}, "rest"); + } } done_testing();