tourmaline icon indicating copy to clipboard operation
tourmaline copied to clipboard

Missing example of test spec

Open razorinc opened this issue 4 years ago • 1 comments

I am looking for an example of effective spec testing of the bots with Tourmaline.

I am willing to contribute and add to all the example bots, but I would like to have some guidance/advice before starting this endeavor.

Cheers

razorinc avatar Feb 05 '21 13:02 razorinc

The main reason for a lack of tests is that testing API adapters like this is a pain. There are libraries such as webmock (for stubbing requests) and vcr (for capturing and replaying real world data), but I just haven't put in the time to set them up yet. I have been meaning to though, so I'll leave this issue here as a reminder of my failure until I get my butt into gear.

watzon avatar Feb 17 '21 23:02 watzon