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

Fails on test without trailing ; #30

Closed
plicease opened this issue Sep 15, 2017 · 1 comment
Closed

Fails on test without trailing ; #30

plicease opened this issue Sep 15, 2017 · 1 comment

Comments

@plicease
Copy link
Contributor

Consider the test:

use Test2::V0;

ok 1;

done_testing

This has always worked with prove, with yath:

yath -v t/foo.t

** Defaulting to the 'test' command **

( LAUNCH )  job  1    t/foo.t
(  NOTE  )  job  1    Seeded srand with seed '20170915' from local date.
[  PASS  ]  job  1  + <UNNAMED ASSERTION>
( STDERR )  job  1    App::Yath::Command::spawn is not intended to be instanciated at /Users/ollisg/.perlbrew/libs/perl-5.26.0@dev/lib/perl5/App/Yath/Command/spawn.pm line 28, <$fh> line 5.
( STDERR )  job  1    	App::Yath::Command::spawn::init(App::Yath::Command::spawn=HASH(0x7fae32e4dc80)) called at /Users/ollisg/.perlbrew/libs/perl-5.26.0@dev/lib/perl5/Test2/Harness/Util/HashBase.pm line 141
( STDERR )  job  1    	Test2::Harness::Util::HashBase::_new("App::Yath::Command::spawn", "args", ARRAY(0x7fae31002e50)) called at /Users/ollisg/.perlbrew/libs/perl-5.26.0@dev/lib/perl5/App/Yath.pm line 36
( STDERR )  job  1    	App::Yath::run_command("App::Yath", "App::Yath::Command::spawn", "spawn", ARRAY(0x7fae31002e50)) called at /Users/ollisg/.perlbrew/libs/perl-5.26.0@dev/lib/perl5/App/Yath.pm line 24
( STDERR )  job  1    	App::Yath::__ANON__() called at t/foo.t line 5
(  DIAG  )  job  1    Tests were run but no plan was declared and done_testing() was not seen.
(  DIAG  )  job  1    Looks like your test exited with 255 after test #1.
( FAILED )  job  1    t/foo.t
( REASON )  job  1    Test script returned error (Code: 255)
( REASON )  job  1    No plan was declared

================================================================================

Run ID: 1505481396

The following test jobs failed:
  [1] t/foo.t

0.28497s on wallclock (0.12 usr 0.03 sys + 0.17 cusr 0.04 csys = 0.36 CPU)

Adding a ; to the end of the test works around this.

@exodist
Copy link
Member

exodist commented Sep 15, 2017

Thanks, I will look into this.

exodist added a commit that referenced this issue Sep 15, 2017
    - Put lib, blib, and -I's before system libs (Fixes #31)
    - Bump minimum goto-file version (Fixes #30)
    - Use $Config for path seperator instead of ':'
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

2 participants