Skip to content

Comparison Tests could be more descriptive #7

@trasa

Description

@trasa

Tests might fail with the following not-so-helpful error message:

Test "Connecting to a game server with POST to connect/ - Connecting succeeds with a valid session": tests failed! Quitting!
Error: expected to be equal, 4200 vs. 4200

Obviously the problem is that one of those is an int, and the other is a string -- but how would someone know that?
So instead, perhaps we should try and determine the type of both values, perhaps if the type is string we should print the result as "4200" to maybe make it more clear?

Alternatively, we could print the types of the values themselves ... that's less clear I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions