App-autotest

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

0.006     2015-05-03 16:30:50+02:00 Europe/Berlin

  [ENHANCEMENTS]

  Tests are run if the modules they are testing are changed. Alas, there is no
  documentation for this feature yet, read the tests to see how to use it.
  Thanks, totofuga!

  Test::Differences changed the output of eq_or_diff so two test cases failed. Changed
  to the new output.

  Minor changes to some modules so perlcritic and dzil play along.
  (https://github.com/rjbs/dist-zilla/pull/168 isn't merged yet)

  [BUGS]

  Updated dist.ini: MetaResources was misplaced so the meta information
  wasn't collected in META.yml

META.yml  view on Meta::CPAN

---
abstract: 'Run test programs as soon as they are modified'
author:
  - 'Gregor Goldbach <glauschwuffel@nomaden.org>'
build_requires:
  File::Basename: '0'
  TAP::Parser::Aggregator: '0'
  Test::Differences: '0.63'
  Test::Mock::Guard: '0'
  Test::Spec: '0.46'
  constant: '0'
  perl: '5.006'
configure_requires:
  ExtUtils::MakeMaker: '0'
  perl: '5.006'
dynamic_config: 0
generated_by: 'Dist::Zilla version 5.036, CPAN::Meta::Converter version 2.142060'
license: perl

META.yml  view on Meta::CPAN

name: App-autotest
requires:
  Cwd: '0'
  File::ChangeNotify: '0'
  File::Find: '0'
  File::Spec: '0'
  FindBin: '0'
  List::MoreUtils: '0'
  Moose: '0'
  TAP::Harness: '0'
  Test::Differences: '0.63'
  Test::Spec: '0.46'
  lib: '0'
  perl: '5.006'
  strict: '0'
  warnings: '0'
resources:
  bugtracker: https://github.com/glauschwuffel/perl5-App-autotest/issues
  homepage: https://github.com/glauschwuffel/perl5-App-autotest
  repository: https://github.com/glauschwuffel/perl5-App-autotest
version: '0.006'

Makefile.PL  view on Meta::CPAN

  "NAME" => "App::autotest",
  "PREREQ_PM" => {
    "Cwd" => 0,
    "File::ChangeNotify" => 0,
    "File::Find" => 0,
    "File::Spec" => 0,
    "FindBin" => 0,
    "List::MoreUtils" => 0,
    "Moose" => 0,
    "TAP::Harness" => 0,
    "Test::Differences" => "0.63",
    "Test::Spec" => "0.46",
    "lib" => 0,
    "strict" => 0,
    "warnings" => 0
  },
  "TEST_REQUIRES" => {
    "File::Basename" => 0,
    "TAP::Parser::Aggregator" => 0,
    "Test::Differences" => "0.63",
    "Test::Mock::Guard" => 0,
    "Test::Spec" => "0.46",
    "constant" => 0
  },
  "VERSION" => "0.006",
  "test" => {
    "TESTS" => "t/*.t t/features/*.t t/integration/*.t t/unit/*.t"
  }
);

Makefile.PL  view on Meta::CPAN

  "ExtUtils::MakeMaker" => 0,
  "File::Basename" => 0,
  "File::ChangeNotify" => 0,
  "File::Find" => 0,
  "File::Spec" => 0,
  "FindBin" => 0,
  "List::MoreUtils" => 0,
  "Moose" => 0,
  "TAP::Harness" => 0,
  "TAP::Parser::Aggregator" => 0,
  "Test::Differences" => "0.63",
  "Test::Mock::Guard" => 0,
  "Test::Spec" => "0.46",
  "constant" => 0,
  "lib" => 0,
  "strict" => 0,
  "warnings" => 0
);


unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {

dist.ini  view on Meta::CPAN

license = Perl_5
copyright_holder = Gregor Goldbach

[@Git]
[@Basic]

[AutoPrereqs]

[Prereqs]
Test::Spec = 0.46
Test::Differences = 0.63

[MinimumPerl]
[PkgVersion]
[CheckChangesHasContent]
[NextRelease]

[MetaResources]
homepage          = https://github.com/glauschwuffel/perl5-App-autotest
bugtracker.web    = https://github.com/glauschwuffel/perl5-App-autotest/issues
repository.url    = https://github.com/glauschwuffel/perl5-App-autotest

t/helper.pm  view on Meta::CPAN

use App::autotest;
use TAP::Harness;
use TAP::Parser::Aggregator;

use Test::Differences;
use Cwd;

use constant TEST_PROGRAMS_DIRECTORY => 't/t';
use constant A_TEST_PROGRAM          => 't/t/1.t';
use constant ANOTHER_TEST_PROGRAM    => 't/t/2.t';
use constant SOME_TEST_PROGRAMS => [ A_TEST_PROGRAM, ANOTHER_TEST_PROGRAM ];

use constant AN_AFTER_CHANGE_OR_NEW_HOOK_THAT_EXISTS_IMMEDIATELY => sub { 1 };

sub an_autotest { return App::autotest->new }

t/unit/autotest.t  view on Meta::CPAN

use Test::Spec;
use Test::Mock::Guard qw(mock_guard);

use App::autotest;
use App::autotest::Test::Runner::Result::History;

use Test::Differences;
use Cwd;
use constant TEST_PROGRAMS_DIRECTORY => 'data/t';

use constant A_TEST_PROGRAM       => 'data/t/1.t';
use constant ANOTHER_TEST_PROGRAM => 'data/t/2.t';
use constant SOME_TEST_PROGRAMS   => [ A_TEST_PROGRAM, ANOTHER_TEST_PROGRAM ];

use constant AN_AFTER_CHANGE_OR_NEW_HOOK_THAT_EXISTS_IMMEDIATELY => sub { 1 };

describe 'an autotest' => sub {



( run in 2.758 seconds using v1.01-cache-2.11-cpan-6aa56a78535 )