File: README

package info (click to toggle)
libtest-fixme-perl 0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 224 kB
  • ctags: 6
  • sloc: perl: 127; makefile: 2
file content (126 lines) | stat: -rw-r--r-- 3,381 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
NAME

    Test::Fixme - Check code for FIXMEs.

VERSION

    version 0.14

SYNOPSIS

     # In a test script like 't/test-fixme.t'
     use Test::Fixme;
     run_tests();
     
     # You can also tailor the behaviour.
     use Test::Fixme;
     run_tests( where    => 'lib',      # where to find files to check
                match    => 'TODO',     # what to check for
                skip_all => $ENV{SKIP}  # should all tests be skipped
     );

DESCRIPTION

    When coding it is common to come up against problems that need to be
    addressed but that are not a big deal at the moment. What generally
    happens is that the coder adds comments like:

     # FIXME - what about windows that are bigger than the screen?
    
     # FIXME - add checking of user privileges here.

    Test::Fixme allows you to add a test file that ensures that none of
    these get forgotten in the module.

METHODS

 run_tests

    By default run_tests will search for 'FIXME' in all the files it can
    find in the project. You can change these defaults by using 'where' or
    'match' as follows:

     run_tests( where => 'lib', # just check the modules.
                match => 'TODO' # look for things that are not done yet.
     );

    where

      Specifies where to search for files. This can be a scalar containing
      a single directory name, or it can be a list reference containing
      multiple directory names.

    match

      Expression to search for within the files. This may be a simple
      string, or a qr//-quoted regular expression. For example:

       match => qr/[T]ODO|[F]IXME|[B]UG/,

    filename_match

      Expression to filter file names. This should be a qr//-quoted regular
      expression. For example:

       match => qr/\.(:pm|pl)$/,

      would only match .pm and .pl files under your specified directory.

    manifest

      Specifies the name of your MANIFEST file which will be used as the
      list of files to test instead of where or filename_match.

       manifest => 'MANIFEST',

    warn

      Do not fail when a FIXME or other pattern is matched. Tests that
      would have been failures will still issue a diagnostic that will be
      viewed when you run prove without -v, make test or ./Build test.

HINTS

    If you want to match something other than 'FIXME' then you may find
    that the test file itself is being caught. Try doing this:

     run_tests( match => 'TO'.'DO' );

    You may also wish to suppress the tests - try this:

     use Test::Fixme;
     run_tests( skip_all => $ENV{SKIP_TEST_FIXME} );

    You can only run run_tests once per file. Please use several test files
    if you want to run several different tests.

SEE ALSO

    Devel::FIXME

ACKNOWLEDGMENTS

    Dave O'Neill added support for 'filename_match' and also being able to
    pass a list of several directories in the 'where' argument. Many
    thanks.

AUTHOR

    original author: Edmund von der Burg

    current maintainer: Graham Ollis <plicease@cpan.org>

    contributors:

    Dave O'Neill

    gregor herrmann <gregoa@debian.org>

COPYRIGHT AND LICENSE

    This software is copyright (c) 2014 by Edmund von der Burg
    <evdb@ecclestoad.co.uk>, Graham Ollis <plicease@cpan.org>.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.