Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added a TODO.pod for missing features, outstanding bugs.

  • Loading branch information...
commit 6f759fccf5a3d22ced2e5413e86e226ea2f06443 1 parent ce30838
Piers Cawley authored April 02, 2009

Showing 1 changed file with 53 additions and 0 deletions. Show diff stats Hide diff stats

  1. 53  TODO.pod
53  TODO.pod
Source Rendered
... ...
@@ -0,0 +1,53 @@
  1
+=over 4
  2
+
  3
+=item Freer test naming
  4
+
  5
+  test $thing->method should do something {
  6
+    ..
  7
+  }
  8
+
  9
+should simply add a test called 'thing_method_should_do_something' to the test
  10
+class.
  11
+
  12
+Meanwhile
  13
+
  14
+  foreach my $method (qw/subject body/) {
  15
+    test "responds to $method" {
  16
+      ok $self->{instance}->$method();
  17
+    }
  18
+  }
  19
+
  20
+should generate a couple of tests in the obvious way. Variables should be
  21
+interpolated in double quoted strings, not otherwise.
  22
+
  23
+=item Policy stuff
  24
+
  25
+  use Test::Class::Sugar (
  26
+    -default_prefix => 'MyTest::Suite::',
  27
+    -test_instance  => '$self',
  28
+  );
  29
+
  30
+  testclass exercises SomeClass {
  31
+    test policy changes {
  32
+      ok $self->isa('MyTest::Suite::SomeClass');
  33
+    }
  34
+  }
  35
+
  36
+=item Anonymous tests
  37
+
  38
+Sometimes assertion comments are enough:
  39
+
  40
+  test {
  41
+    ok 1, "I prefer to name my tests like this";
  42
+  }
  43
+
  44
+=item Better diagnostics
  45
+
  46
+Right now, when things fail, they fail spectacularly. Okay if you don't fuck
  47
+up, not so okay otherwise. Make the parser fail gracefully.
  48
+
  49
+=item Preserve the correct linenumber
  50
+
  51
+No idea how to do this yet...
  52
+
  53
+=back

0 notes on commit 6f759fc

Please sign in to comment.
Something went wrong with that request. Please try again.