File: cl_standalone.lua

package info (click to toggle)
lua-busted 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 820 kB
  • sloc: sh: 198; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 679 bytes parent folder | download | duplicates (6)
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
-- supporting testfile; belongs to 'cl_spec.lua'

require 'busted.runner'()

describe('Tests busted standalone with command-line options', function()

  it('is a test with a tag #tag1', function()
    -- works by counting failure
    error('error 1 on tag1')
  end)

  it('is a test with a tag #tag1', function()
    -- works by counting failure
    error('error 2 on tag1')
  end)

  it('is a test with a tag #tag2', function()
    -- works by counting failure
    error('error on tag2')
  end)

  it('is a test with a tag #tag3', function()
    -- nothing here, makes it succeed
  end)

  it('is a test with two tags #tag3 #tag4', function ()
    -- Always succeed
  end)
end)