Skip to content

Possibly add some unit (integration) tests for message parsing  #16

@creesch

Description

@creesch

Considering the repo is now setup for nodejs and the fact that the javascript files have been turned into modules makes it fairly easy to import message_parsing.mjs into vitest or some other unittest framework.

Thinking about it, I am not entirely sure if it makes sense to have actual unit tests for the individual functions. That might be overkill, certainly after the fact.

But to prevent regression in the future it might make sense to go for unit integration level tests where a variety of minecraft JSON messages are fed in to validate basic parsing. @danthedaniel thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions