Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prove -l ./t/integration/test.t fails because fo the leading dot #215

Closed
ppisar opened this issue Mar 8, 2021 · 0 comments
Closed

prove -l ./t/integration/test.t fails because fo the leading dot #215

ppisar opened this issue Mar 8, 2021 · 0 comments

Comments

@ppisar
Copy link
Contributor

ppisar commented Mar 8, 2021

Invoking t/integration/test.t without a working directory works:

$ prove -l t/integration/test.t
t/integration/test.t .. ok
All tests successful.
Files=1, Tests=13,  6 wallclock secs ( 0.02 usr  0.00 sys +  9.68 cusr  2.72 csys = 12.42 CPU)
Result: PASS

But specifying the test with a current directory breaks the test:

$ prove -l ./t/integration/test.t
./t/integration/test.t .. 4/?     # Failed test 'Exit Value Check'
    # at ./t/integration/test.t line 75.
    # +-----+----+-------+
    # | GOT | OP | CHECK |
    # +-----+----+-------+
    # | 256 | eq | 0     |
    # +-----+----+-------+
    # Failed test ''fail.tx' was excluded using '--exclude-file' option'
    # at ./t/integration/test.t line 72.
    # Comparison matched (it should not).
    # Command = /usr/bin/perl /home/test/fedora/perl-Test2-Harness/Test2-Harness-1.000043/scripts/yath -D/home/test/fedora/perl-Test2-Harness/Test2-Harness-1.000043/lib test -I/home/test/fedora/perl-Test2-Harness/Test2-Harness-1.000043/lib --exclude-file=./t/integration/test/fail.txx ./t/integration/test/pass.tx ./t/integration/test/fail.txx
    # Exit = 256
    # ==== Output ====
    # [  FAIL  ]  job  1  + Fail
    # (  DIAG  )  job  1    Failed test 'Fail'
    # (  DIAG  )  job  1    at t/integration/test/fail.txx line 3.
    # (  DIAG  )  job  1    Seeded srand with seed '20210308' from local date.
    # ( FAILED )  job  1    t/integration/test/fail.txx
    # < REASON >  job  1    Test script returned error (Err: 1)
    # < REASON >  job  1    Assertion failures were encountered (Count: 1)
    # ( PASSED )  job  2    t/integration/test/pass.tx
    #
    # The following jobs failed:
    # +--------------------------------------+-----------------------------+
    # | Job ID                               | Test File                   |
    # +--------------------------------------+-----------------------------+
    # | 4B6A4B78-8023-11EB-B233-7C186E1C8A1A | t/integration/test/fail.txx |
    # +--------------------------------------+-----------------------------+
    #
    #                                 Yath Result Summary
    # -----------------------------------------------------------------------------------
    #      Fail Count: 1
    #      File Count: 2
    # Assertion Count: 2
    #       Wall Time: 0.36 seconds
    #        CPU Time: 0.55 seconds (usr: 0.12s | sys: 0.02s | cusr: 0.34s | csys: 0.07s)
    #       CPU Usage: 153%
    #     -->  Result: FAILED  <--
    #
    #
    # ========
[...]
./t/integration/test.t .. 7/?     # Failed test ''_base.xt' was skipped'
    # at ./t/integration/test.t line 112.
    # +-------------------------------+----+-------------------------------+
    # | GOT                           | OP | CHECK                         |
    # +-------------------------------+----+-------------------------------+
    # | ( SKIPPED)  job  1    t/integ | =~ | (?^:SKIPPED.*\.\/t\/integrati |
    # | ration/test-symlinks/_base.xt |    | on\/test\-symlinks\/_base\.xt |
    # |   -  Do Not Run on the Main b |    | )                             |
    # | ase.t\n                       |    |                               |
    # | ( PASSED )  job  2    t/integ |    |                               |
    # | ration/test-symlinks/symlink_ |    |                               |
    # | to_base.xt\n                  |    |                               |
    # | \n                            |    |                               |
    # +-------------------------------+----+-------------------------------+
[...]
exodist added a commit that referenced this issue Mar 12, 2021
    - Add plugin support for providing coverage/duration data
    - Fix running t/integration tests with ./ in path (#215)
    - Add a fixme/todo test for #216 (Tap subtest parsing)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant