Java Community | Help. Code. Learn.JC|HCL
Java Community | Help. Code. Learn.โ€ข2mo agoโ€ข
7 replies
Omar

How Should I Test My Library?

Fellow Java Devs, how are you all doing?

As the title suggests, I've built discord-channel-html-transcript as a fun side project. What this does is it takes all messages in a Discord channel and processes them using the Java Template Engine to create an "archive" of the channel in HTML format.

The main problem stands here: How should I test this library? I've been using Mockito to mock the data I want to preview, but now since Discord has released ComponentsV2, there have been so many different components and combinations of components that I can't possibly think of myself.

Am I doing the right thing by creating different combinations and testing by trial and error? Or is there something that I'm missing?

Any opinions are appreciated, thank you.
GitHub
Java library for Discord bots to generate easily shareable HTML archives of channels. - omardiaadev/discord-channel-html-transcript
GitHub - omardiaadev/discord-channel-html-transcript: Java library ...
Was this page helpful?