nisnevich / discord-consensus-bot

A Discord bot for a consensus in decentralised organisations (e.g. DAO). Implements a lazy consensus and full consensus models.
MIT License
5 stars 4 forks source link

Add integration tests #22

Open nisnevich opened 1 year ago

nisnevich commented 1 year ago

It would be very helpful to have a pipeline with some tests that verify: 1) Sending proposal (expected - bot replied, proposal added to voting channel). 2) Cancelling proposal by proposer and by opposition (expected - bot replied, proposal updated with cancelled status). 3) Adding the grant (expected - after the timer exceeded, if proposal wasn't cancelled, bot should reply, proposal should be updated with success status, and grant should be sent in the grant channel).

During development, new fixes/enchantments may break some of that functionalities, so it would help a lot to automate integration testing.