use Test::More; my $emacs_found = qx{ emacs --version 2>/dev/null }; if( not( $emacs_found ) ) { plan skip_all => 'emacs was not found in PATH'; } else { plan tests => 27; } use_ok( 'Emacs::Run' ); [...]