28
Testing is a pity in Common Lisp Even with Prove. KANSAI LISP #3 Oct 7, 2017

Rove / Testing is a pity in Common Lisp

Embed Size (px)

Citation preview

Page 1: Rove / Testing is a pity in Common Lisp

Testing is a pity in Common Lisp Even with Prove.

KANSAI LISP #3 Oct 7, 2017

Page 2: Rove / Testing is a pity in Common Lisp

I’m Eitaro Fukamachi @nitro_idiot fukamachi

Page 3: Rove / Testing is a pity in Common Lisp

Pocket Change

http://www.pocket-change.jp

Page 4: Rove / Testing is a pity in Common Lisp

Available at KIX since Oct 4

Page 5: Rove / Testing is a pity in Common Lisp
Page 6: Rove / Testing is a pity in Common Lisp

Touch Screen

Coins BillsIC Card Reader

Receipt Printer

API Server

Page 7: Rove / Testing is a pity in Common Lisp

Today’s topic

Page 8: Rove / Testing is a pity in Common Lisp

Which testing library do you use?

• FiveAM?

• CLUnit?

• Prove?

• lisp-unit?

• rt?

• Other 24 libraries?

Page 9: Rove / Testing is a pity in Common Lisp

Consolidating is recommended

Page 10: Rove / Testing is a pity in Common Lisp

Consolidating is recommended

“Do we need that many different unit test libraries?”

Page 11: Rove / Testing is a pity in Common Lisp

Why don’t you use Prove? :)

• My project

• Extensible reporters

• TAP, Spec, dot

• Nice reporting with colors

• Success / Failure

• Test duration

• Roswell script support

• Nice integration with Travis CI & Coveralls

Page 12: Rove / Testing is a pity in Common Lisp

Prove

Page 13: Rove / Testing is a pity in Common Lisp

Great enough. Really.

Page 14: Rove / Testing is a pity in Common Lisp

However…

Page 15: Rove / Testing is a pity in Common Lisp

Problems of Prove

• No support for ASDF package-inferred-system

• Too much dependencies

• Cannot see the detail of failure tests

Page 16: Rove / Testing is a pity in Common Lisp

Problems of Prove

• No support for ASDF package-inferred-system

• Too much dependencies

• Cannot see the detail of failure tests

Page 17: Rove / Testing is a pity in Common Lisp

Problems of Prove

What the hell going on????

Page 18: Rove / Testing is a pity in Common Lisp

Problems of Prove

Show me the stack traces, please.

Page 19: Rove / Testing is a pity in Common Lisp

Painful.

Page 20: Rove / Testing is a pity in Common Lisp

Sorry, Fare. I can’t help…

Page 21: Rove / Testing is a pity in Common Lisp

YET ANOTHER TESTING FRAMEWORK!!!!!!!!

Page 22: Rove / Testing is a pity in Common Lisp

Rove https://github.com/fukamachi/rove

Page 23: Rove / Testing is a pity in Common Lisp

In case of Rove

Page 24: Rove / Testing is a pity in Common Lisp

In case of Rove

Page 25: Rove / Testing is a pity in Common Lisp

Advantages of Rove

• Basically same as Prove

• And additionally

• ASDF package-inferred-system support

• Only a few dependencies

• Thread-support

• Better failure report

Page 26: Rove / Testing is a pity in Common Lisp

Example

• Already used in several projects

• jsonrpc

• jose

• one - One-liner library by t-sin

Page 27: Rove / Testing is a pity in Common Lisp

Status

• Still in development

• Intended to be a successor of Prove

Page 28: Rove / Testing is a pity in Common Lisp

Thanks.