set variables before executing the "test-op"
fahree at gmail.com
Wed Sep 7 11:54:02 UTC 2016
On Tue, Sep 6, 2016 at 3:49 PM, Alexey Veretennikov
<txm.fourier at gmail.com> wrote:
> I decided to follow your first advice with some difference:
> I've created a file base.lisp with the following contents:
> (in-package :cl-user)
> (defpackage test.base
> (:use :cl
> (in-package :test.base)
> ;; turn off ansi colors in report output
> (setf prove.color:*enable-colors* nil)
> ;; change type of the reporter to Test Anything Protocol
> (setf prove:*default-reporter* :tap)
> and added this file to components section of the test asd file:
> :components ((:module "t"
> ((:file "base")
> (:test-file "pack-test")
> I've also added :prove to depends-on section of the test asd file.
> This works for me and I don't have to modify all test files.
> Is this approach ok or bad(dangerous, bad style etc.)?
This looks like it's good style to me.
—♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• http://fare.tunes.org
Give up all hope for a better yesterday, even a better just now.
Never give up hope for a better tomorrow. — Patri Friedman
More information about the asdf-devel