pts icon indicating copy to clipboard operation
pts copied to clipboard

Define :test command in .ghci

Open Toxaris opened this issue 11 years ago • 0 comments

The .ghci file should define a :test command that runs unit tests from ghci. This can be done by something like the following:

cmdTests args = <haskell code to run the tests here>
:def test cmdTests

It would be perfect if cmdTests would use the args to decide which tests to run.

Toxaris avatar May 12 '13 13:05 Toxaris