clarkperkins / click-shell

An extension to click that easily turns your click app into a shell utility
BSD 3-Clause "New" or "Revised" License
90 stars 17 forks source link

How to implement tests #27

Open aparcar opened 3 years ago

aparcar commented 3 years ago

Hi, first of all thanks for this project, it serves the purpose very well!

I'd like to write some tests where I run multiple commands in a row evaluate the output. To share the state I'm currently storing it in the context ctx.obj. However I can't figure out how to access that object later on.

Does anyone else uses this library and developed test cases?