Open-Assistant icon indicating copy to clipboard operation
Open-Assistant copied to clipboard

Write instructions and examples for integration tests of the discord bot

Open yk opened this issue 2 years ago • 4 comments

we want to run integration tests of the entire stack: backend + discord bot frontend. this requires pulling both up, including possibly a temporary postgres database for the backend, initializing the database, and running tests against the system.

make a plan on how to achieve this, then implement a few examples and write down instructions for people who want to write their own integration tests.

pytest with a docker-compose plugin can be used to easily pull up containers for testing, but this task is especially challenging because of the need to either simulate, fake, or actually provide the interaction of the bot with a discord server.

yk avatar Dec 27 '22 13:12 yk

Automatically testing discord bots is very difficult and sometimes against discord ToS. However, I'm open to ideas.

AlexanderHott avatar Dec 29 '22 05:12 AlexanderHott

I mean, it can start small by mocking the discord API web calls, but we need some sort of tests desperately with so many people working on stuff.

yk avatar Dec 29 '22 12:12 yk

I would like to work on this, however I don't exactly understand what are we testing. Everything? A specific feature?

kayjay-is-here avatar Jan 12 '23 23:01 kayjay-is-here

I am moving this to backlog.

andreaskoepf avatar Feb 20 '23 13:02 andreaskoepf

Closing all old discord bot issues. Discord data collection never took off. It might be more viable to develop a discord bot that communicates with the inference system.

andreaskoepf avatar Mar 22 '23 09:03 andreaskoepf