Package: gradle-debian-helper
Version: 2.0.2

Hello,

gradle-debian-helper does not seem to support dh_auto_test action,
although this would be beneficial. In at least some of the sources I am
interested in (for example [1]), gradle task 'test' is used to run the
test suite. To run it, I may add the following to debian/rules:

override_dh_auto_test:
    dh_auto_build -- test

Nevertheless, proper dh_auto_test would run tests implicitly, as well as
ignore them when DEB_BUILD_OPTIONS=nocheck is supplied. My uneducated
guess is that this could be easily achieved by adding the following code
to /usr/share/perl5/Debian/Debhelper/Buildsystem/gradle.pm:

sub test {
    my $this=shift;

    if (!@_) {
        push(@_, "test");
    }

    $this->build(@_);
}

Best,
Andrius

[1] https://salsa.debian.org/java-team/libejml-java

Reply via email to