File: disabled_spec.pl

package info (click to toggle)
libtest-spec-perl 0.45-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 252 kB
  • sloc: perl: 2,050; makefile: 2
file content (47 lines) | stat: -rwxr-xr-x 897 bytes parent folder | download | duplicates (5)
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
#!/usr/bin/env perl
#
# disabled.t
#
# Disabled specs.
#
########################################################################
#

package Testcase::Spec::Disabled;
use Test::Spec;
use FindBin qw($Bin);
BEGIN { require "$Bin/test_helper.pl" };

describe 'Test::Spec' => sub {
  xdescribe 'disabled spec' => sub {
    it 'should not execute "it" examples' => sub {
      fail;
    };
    they 'should not execute "they" examples' => sub {
      fail;
    };
  };

  xcontext "disabled spec 2" => sub {
    it 'should not execute "it" examples' => sub {
      fail;
    };
  };

  xit 'should not execute disabled "it" example' => sub {
    fail;
  };

  xthey 'should not execute disabled "they" example' => sub {
    fail;
  };

  it 'should execute enabled "it" example' => sub {
    pass;
  };
  they 'should execute enabled "they" example' => sub {
    pass;
  };
};

runtests unless caller;