fukamachi / prove

Yet another unit testing framework for Common Lisp
218 stars 23 forks source link

Nested subtests doesn't work #40

Open fourier opened 7 years ago

fourier commented 7 years ago

Given

(in-package :cl-user)
(defpackage subtests-test
  (:use :cl
        :prove))

(in-package subtests-test)

(plan nil)

(subtest "test subtests"
  (subtest "test 1")
  (subtest "test 2"))

(finalize)

the results are:

# test subtests
    # test 1
    ok 1 - test 1
    # test 2
    ok 2 - test 2
not ok 1 - test subtests
# All 1 test passed.
svetlyak40wt commented 7 years ago

Hmm, I've got another results from given example:

 test subtests
   test 1
   test 2
✓ 1 test completed (0ms)

That is on OSX:

SUBTESTS-TEST> (lisp-implementation-type)
"SBCL"
SUBTESTS-TEST> (lisp-implementation-version)
"1.3.12"
SUBTESTS-TEST> (ql:where-is-system 'prove)
#P"/Users/art/.roswell/lisp/quicklisp/dists/quicklisp/software/prove-20160825-git/"
svetlyak40wt commented 7 years ago

@fourier could you provide more information?

fourier commented 7 years ago

@svetlyak40wt This could be reproduced using TAP as a default reporter:

(setf prove:*default-reporter* :tap)