diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-06-23 16:29:02 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-06-23 16:29:02 +0200 |
commit | 5223d56e6e47695ef9d37591b704fbd8cff35293 (patch) | |
tree | 36f10af5c9d374b8ecd414e85dea7f86a66cbcca | |
parent | d33460918190bef8259b19f5793d4fce0e7fe485 (diff) |
Add basic tests
-rwxr-xr-x | t/00-compile-pm.t | 8 | ||||
-rwxr-xr-x | t/01-compile-pl.t | 8 | ||||
-rwxr-xr-x | t/10-pod-coverage.t | 8 | ||||
-rw-r--r-- | t/20-db.t | 11 |
4 files changed, 35 insertions, 0 deletions
diff --git a/t/00-compile-pm.t b/t/00-compile-pm.t new file mode 100755 index 0000000..2476ab2 --- /dev/null +++ b/t/00-compile-pm.t @@ -0,0 +1,8 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use 5.010; +use Test::More; +use Test::Compile; + +all_pm_files_ok(); diff --git a/t/01-compile-pl.t b/t/01-compile-pl.t new file mode 100755 index 0000000..f130ac4 --- /dev/null +++ b/t/01-compile-pl.t @@ -0,0 +1,8 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use 5.010; +use Test::More; +use Test::Compile; + +all_pl_files_ok(); diff --git a/t/10-pod-coverage.t b/t/10-pod-coverage.t new file mode 100755 index 0000000..5fe4faa --- /dev/null +++ b/t/10-pod-coverage.t @@ -0,0 +1,8 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use 5.010; +use Test::More; +use Test::Pod; + +all_pod_files_ok(); diff --git a/t/20-db.t b/t/20-db.t new file mode 100644 index 0000000..5e70a70 --- /dev/null +++ b/t/20-db.t @@ -0,0 +1,11 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use 5.010; + +use Test::More tests => 2; + +BEGIN { + use_ok('Travel::Status::DE::DeutscheBahn'); +} +require_ok('Travel::Status::DE::DeutscheBahn'); |