Code Monkey home page Code Monkey logo

app-githooks-plugin-detectcommitnoverify's People

Contributors

book avatar guillaumeaubert avatar

Watchers

 avatar  avatar

Forkers

book

app-githooks-plugin-detectcommitnoverify's Issues

Tests fail if git config core.autocrlf true

Maybe the git-related tests ought to be run using a supplied git configuration?

This is the output I got:

Building App-GitHooks-Plugin-DetectCommitNoVerify
# Testing App::GitHooks::Plugin::DetectCommitNoVerify 1.0.3, Perl 5.022001, /usr/bin/perl
t/00-load.t ......... ok
# Using git version 2.7.4.
t/01-git_version.t .. ok

            #   Failed test 'Add the file to the git index.'
            #   at /home/e220025/perl5/lib/perl5/App/GitHooks/Test.pm line 112.
            # died: fatal: LF would be replaced by CRLF in test.pl at /home/e220025/perl5/lib/perl5/App/GitHooks/Test.pm line 110.
            # Looks like you failed 1 test of 2.

        #   Failed test 'Add file >test.pl<.'
        #   at /home/e220025/perl5/lib/perl5/App/GitHooks/Test.pm line 115.
        # Looks like you failed 1 test of 1.

    #   Failed test 'Set up test files.'
    #   at /home/e220025/perl5/lib/perl5/App/GitHooks/Test.pm line 173.

    #   Failed test 'The commit failed with an error message.'
    #   at t/10-run.t line 113.
    #                   'error: pathspec '' did not match any file(s) known to git. at t/10-run.t line 94.
    # '
    #     doesn't match '(?^:x\ Test\ plugin\ \-\ custom\ return\ codes\.)'
    # Looks like you failed 2 tests of 6.

#   Failed test 'Commit without --no-verify.'
#   at t/10-run.t line 145.

            #   Failed test 'Add the file to the git index.'
            #   at /home/e220025/perl5/lib/perl5/App/GitHooks/Test.pm line 112.
            # died: fatal: LF would be replaced by CRLF in test.pl at /home/e220025/perl5/lib/perl5/App/GitHooks/Test.pm line 110.
            # Looks like you failed 1 test of 2.

        #   Failed test 'Add file >test.pl<.'
        #   at /home/e220025/perl5/lib/perl5/App/GitHooks/Test.pm line 115.
        # Looks like you failed 1 test of 1.

    #   Failed test 'Set up test files.'
    #   at /home/e220025/perl5/lib/perl5/App/GitHooks/Test.pm line 173.
    # Looks like you failed 1 test of 6.

#   Failed test 'Commit with --no-verify.'
#   at t/10-run.t line 145.
# Looks like you failed 2 tests of 2.
t/10-run.t .......... 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests 
t/11-perlcompile.t .. skipped: App::GitHooks::Plugin::PerlCompile is not installed.

Test Summary Report
-------------------
t/10-run.t        (Wstat: 512 Tests: 2 Failed: 2)
  Failed tests:  1-2
  Non-zero exit status: 2
Files=4, Tests=5,  1 wallclock secs ( 0.03 usr  0.01 sys +  0.29 cusr  0.17 csys =  0.50 CPU)
Result: FAIL
Failed 1/4 test programs. 2/5 subtests failed.
-> FAIL Installing App::GitHooks::Plugin::DetectCommitNoVerify failed. See /home/e220025/.cpanm/work/1469197490.89697/build.log for details. Retry with --force to force install it.

Hope this helps!

  • Salve

t/10-run.t fails on newer FreeBSD systems

On my freebsd 11+12 smokers the test suite fails:

    #   Failed test 'Commit the changes.'
    #   at t/10-run.t line 100.
    # died: fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths at t/10-run.t line 94.
    
    #   Failed test 'The commit failed with an error message.'
    #   at t/10-run.t line 113.
    #                   undef
    #     doesn't match '(?^:x\ Test\ plugin\ \-\ custom\ return\ codes\.)'
Use of uninitialized value $exit_status in numeric ne (!=) at t/10-run.t line 122.
    
    #   Failed test 'Retrieve the commit message.'
    #   at t/10-run.t line 134.
    # died: fatal: your current branch 'master' does not have any commits yet at t/10-run.t line 132.
    
    #   Failed test 'The pre-commit errors are embedded in the commit message.'
    #   at t/10-run.t line 138.
    #                   undef
    #     doesn't match '(?^:x\ Test\ plugin\ \-\ custom\ return\ codes\.)'
    # Looks like you failed 4 tests of 6.

#   Failed test 'Commit without --no-verify.'
#   at t/10-run.t line 145.
# Looks like you failed 1 test of 2.
t/10-run.t .......... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests 

git version installed here: 2.16.1 or 2.16.2, which is newer than on my other smoker systems.

Investigate issue with --no-verify on OpenBSD

Per http://cpantesters.org/cpan/report/9dce5c4a-f102-11e3-91af-b13c75ee6823:

# Testing App::GitHooks::Plugin::DetectCommitNoVerify 1.0.2, Perl 5.010000, /home/cpan/pit/thr/perl-5.10.0/bin/perl
t/00-load.t ......... ok
# Using git version 1.8.3.3.
t/01-git_version.t .. ok

    #   Failed test 'No error message is printed prior to the commit.'
    #   at t/10-run.t line 106.
    # Looks like you failed 1 test of 6.

#   Failed test 'Commit with --no-verify.'
#   at t/10-run.t line 145.
# Looks like you failed 1 test of 2.
t/10-run.t .......... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests 
t/11-perlcompile.t .. skipped: App::GitHooks::Plugin::PerlCompile is not installed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.