Prevent result accumulation within LCP's tests

Summary:
PROVE:PLAN clears the previously stored results for the current suite (which is
the suite associated with the current package) and prevents "result
accumulation" (and the accompanying huge and partly outdated reports).

Reviewers: mtomic, teon.banek

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1909
This commit is contained in:
Lovro Lugovic 2019-03-06 14:29:02 +01:00
parent 1de34d8b92
commit c15c16c577
3 changed files with 5 additions and 3 deletions

View File

@ -24,8 +24,6 @@
(lcp::parse-cpp-type-declaration type-decl2)
:test #'lcp::cpp-type=))
(plan nil)
(deftest "supported"
(subtest "designators"
(mapc (lambda (sym)

View File

@ -15,4 +15,7 @@
(defsystem "lcp/test"
:depends-on ("lcp" "prove")
:components ((:file "lcp-test"))
:perform (test-op :after (op s) (symbol-call :prove :run-test-package :lcp-test)))
:perform (test-op :after (op s)
(let ((*package* (find-package :lcp-test)))
(symbol-call :prove :plan nil)
(symbol-call :prove :run-test-package :lcp-test))))

View File

@ -8,6 +8,7 @@
(setf uiop:*image-entry-point*
(lambda ()
(let ((prove:*default-reporter* :fiveam))
(prove:plan nil)
(unless (prove:run-test-package :lcp-test)
(uiop:quit 1)))))
(uiop:dump-image "test_lcp" :executable t)