summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-06-23 16:29:02 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-06-23 16:29:02 +0200
commit5223d56e6e47695ef9d37591b704fbd8cff35293 (patch)
tree36f10af5c9d374b8ecd414e85dea7f86a66cbcca
parentd33460918190bef8259b19f5793d4fce0e7fe485 (diff)
Add basic tests
-rwxr-xr-xt/00-compile-pm.t8
-rwxr-xr-xt/01-compile-pl.t8
-rwxr-xr-xt/10-pod-coverage.t8
-rw-r--r--t/20-db.t11
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');