Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Be more explicit in test code.
- When changing @inc
- When loading modules
  • Loading branch information
ingydotnet committed Mar 12, 2013
1 parent 86832d3 commit 11fd893
Show file tree
Hide file tree
Showing 21 changed files with 64 additions and 37 deletions.
5 changes: 3 additions & 2 deletions t/arguments.t
@@ -1,7 +1,8 @@
use lib 't/lib';
use TestML;
use t::Bridge;
use TestMLBridge;

TestML->new(
testml => 'testml/arguments.tml',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
)->run;
5 changes: 3 additions & 2 deletions t/assertions.t
@@ -1,7 +1,8 @@
use lib 't/lib';
use TestML;
use t::Bridge;
use TestMLBridge;

TestML->new(
testml => 'testml/assertions.tml',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
)->run;
5 changes: 3 additions & 2 deletions t/basic.t
@@ -1,7 +1,8 @@
use lib 't/lib';
use TestML;
use t::Bridge;
use TestMLBridge;

TestML->new(
testml => 'testml/basic.tml',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
)->run;
5 changes: 3 additions & 2 deletions t/dataless.t
@@ -1,7 +1,8 @@
use lib 't/lib';
use TestML;
use t::Bridge;
use TestMLBridge;

TestML->new(
testml => 'testml/dataless.tml',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
)->run;
5 changes: 3 additions & 2 deletions t/exceptions.t
@@ -1,7 +1,8 @@
use lib 't/lib';
use TestML;
use t::Bridge;
use TestMLBridge;

TestML->new(
testml => 'testml/exceptions.tml',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
)->run;
5 changes: 3 additions & 2 deletions t/external.t
@@ -1,7 +1,8 @@
use lib 't/lib';
use TestML;
use t::Bridge;
use TestMLBridge;

TestML->new(
testml => 'testml/external.tml',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
)->run;
5 changes: 3 additions & 2 deletions t/function.t
@@ -1,7 +1,8 @@
use lib 't/lib';
use TestML;
use t::Bridge;
use TestMLBridge;

TestML->new(
testml => 'testml/function.tml',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
)->run;
5 changes: 3 additions & 2 deletions t/inline.t
@@ -1,8 +1,9 @@
use lib 't/lib';
use TestML;
use t::Bridge;
use TestMLBridge;

TestML->new(
bridge => 't::Bridge',
bridge => 'TestMLBridge',
)->run;

__DATA__
Expand Down
5 changes: 3 additions & 2 deletions t/label.t
@@ -1,7 +1,8 @@
use lib 't/lib';
use TestML;
use t::Bridge;
use TestMLBridge;

TestML->new(
testml => 'testml/label.tml',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
)->run;
2 changes: 1 addition & 1 deletion t/Bridge.pm → t/lib/TestMLBridge.pm
@@ -1,4 +1,4 @@
package t::Bridge;
package TestMLBridge;
use base TestML::Bridge;
use TestML::Util;

Expand Down
5 changes: 4 additions & 1 deletion t/lite/arguments.t
@@ -1,7 +1,10 @@
use lib 't/lib';
use TestML;
use TestML::Compiler::Lite;
use TestMLBridge;

TestML->new(
testml => '../testml/arguments.tml',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
compiler => 'TestML::Compiler::Lite',
)->run;
5 changes: 4 additions & 1 deletion t/lite/basic.t
@@ -1,7 +1,10 @@
use lib 't/lib';
use TestML;
use TestML::Compiler::Lite;
use TestMLBridge;

TestML->new(
testml => '../testml/basic.tml',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
compiler => 'TestML::Compiler::Lite',
)->run;
5 changes: 4 additions & 1 deletion t/lite/exceptions.t
@@ -1,7 +1,10 @@
use lib 't/lib';
use TestML;
use TestML::Compiler::Lite;
use TestMLBridge;

TestML->new(
testml => '../testml/exceptions.tml',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
compiler => 'TestML::Compiler::Lite',
)->run;
5 changes: 4 additions & 1 deletion t/lite/semicolons.t
@@ -1,7 +1,10 @@
use lib 't/lib';
use TestML;
use TestML::Compiler::Lite;
use TestMLBridge;

TestML->new(
testml => '../testml/semicolons.tml',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
compiler => 'TestML::Compiler::Lite',
)->run;
5 changes: 3 additions & 2 deletions t/markers.t
@@ -1,7 +1,8 @@
use lib 't/lib';
use TestML;
use t::Bridge;
use TestMLBridge;

TestML->new(
testml => 'testml/markers.tml',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
)->run;
5 changes: 3 additions & 2 deletions t/semicolons.t
@@ -1,7 +1,8 @@
use lib 't/lib';
use TestML;
use t::Bridge;
use TestMLBridge;

TestML->new(
testml => 'testml/semicolons.tml',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
)->run;
5 changes: 3 additions & 2 deletions t/standard.t
@@ -1,7 +1,8 @@
use lib 't/lib';
use TestML;
use t::Bridge;
use TestMLBridge;

TestML->new(
testml => 'testml/standard.tml',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
)->run;
4 changes: 2 additions & 2 deletions t/testml-lite.yaml
@@ -1,14 +1,14 @@
source_testml_dir: ../../testml-tml
local_testml_dir: ./testml
test_file_template: |
use lib 't';
use lib 't/lib';
use TestML;
use TestML::Compiler::Lite;
use TestMLBridge;
TestML->new(
testml => '../[% file %]',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
compiler => 'TestML::Compiler::Lite',
)->run;
test_file_dir: lite
Expand Down
5 changes: 3 additions & 2 deletions t/testml.yaml
@@ -1,12 +1,13 @@
source_testml_dir: ../../testml-tml
local_testml_dir: ./testml
test_file_template: |
use lib 't/lib';
use TestML;
use t::Bridge;
use TestMLBridge;
TestML->new(
testml => '[% file %]',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
)->run;
exclude_testml_files:
- comments.tml
Expand Down
5 changes: 3 additions & 2 deletions t/truth.t
@@ -1,7 +1,8 @@
use lib 't/lib';
use TestML;
use t::Bridge;
use TestMLBridge;

TestML->new(
testml => 'testml/truth.tml',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
)->run;
5 changes: 3 additions & 2 deletions t/types.t
@@ -1,7 +1,8 @@
use lib 't/lib';
use TestML;
use t::Bridge;
use TestMLBridge;

TestML->new(
testml => 'testml/types.tml',
bridge => 't::Bridge',
bridge => 'TestMLBridge',
)->run;

0 comments on commit 11fd893

Please sign in to comment.