Skip to content

Add Unit tests for commands #152

@Zabuzard

Description

@Zabuzard

We should add unit tests for our commands.

I am aware that we can not cover the actual JDA integration but we should still test the application logic of our commands in an isolated fashion with unit tests.

@Heatmanofurioso proposed a JdaMock class using Mockito that tries to integrate into our existing command system for some sort of natural testing. You can get the proposed changes as PATCH file here and there is also the branch feature/add_jda_mock with all those change in them already.

Before we get started, we have to decide and align on how we want to approach this, whether a JdaMock is a good idea or maybe not. And then we have to create and/or polish a solution and finally at least add some tests for the base commands (ping, dbget, dbput, as shown by @Heatmanofurioso in the proposal).

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions