Skip to content

Write seems to be highly dependent from the OS making it untestable #157

Closed
@huguesdevimeux

Description

@huguesdevimeux

I'm facing an incomprehensible issue with Write function.
To give a little bit of context, I'm building tests (yes, still ... ) and so those tests are run on different OS (Linux - MacOs - Windows).
To test Write, I just compare the last frame generated with a pre-generated one: if it matches, all good, if not, something has been modified/broken.

BUT The Write test passes only on windows (see, for example, https://github.com/ManimCommunity/manim/runs/772124858). So I first thought "Well, it's normal, since my Write test works with a Text object, it must be a font-related issue since the fonts are different from a system to another, and I generated the pre-rendered frames on windows so it's logic. But no, because the Text test (that just test Text object, no animation (see

class TextMobjectTest(Scene):
) works on any system. I precise that the frame differs from -I think - a bunch of pixels - the difference does not seem to be visible.

So my guess is that the issue comes from Write directly. I tried to implement something that changes the data depending on the system we are testing on (i.e if on Linux, take the pre-rendered frame from Linux, etc) but nah, it didn't work on both macOS and Ubuntu. (But worked on windows).

So I think I will purely remove this test. (If you agree, of course)

But my question is: Does anyone knows why does that happen?

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem righttestingAnything related to testing the library

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions