question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Questions RE: contributing to testing of Manim

See original GitHub issue

Hi. In the README it mentions that

there is a dire need for tests

As I’m currently moving a quite a few of my own projects CI systems to GitHub Actions I was wondering if there is any general consensus or thoughts on how testing on Manim should go. Obviously animation is a tricky thing to test rigorously, but at least installation and some other basic tests can be started on.

I’m generally a fan of pytest, so unless there are strong objections if I were to start a testing PR on this before the end of the year would people be fine using pytest? Regardless, I have a question related to how to treat Manim in testing. Is Manim meant to be a library or an application? This may sound vauge, so I will just let Donald Stufft’s post “setup.py vs requirements.txt” and the pipenv website explain what I’m asking and why for me better than I can.

Thanks in general for all this nice work!

cc @3b1b @eulertour

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
3b1bcommented, Dec 11, 2019

Hi Matthew,

Thanks for the inquiry and willingness to help, and apologies for a slow response. Pytest seems good, though I’ll admit to not knowing what the right considerations at play are here. Testing the look of the animations is probably very tricky, in no small part because it’s possible stylistic changes would be desirable without breaking all tests. Maybe the best way to start is with simple tests that ensure things don’t break, and that basic positional data lines up with expectations. For example, obj1.next_to(obj2, LEFT) should leave the x_component of obj1.get_right() smaller than that of obj2.get_left().

As to the question of library vs. application, I agree that it’s a little ambiguous at the moment. The end goal is probably be to separate the two, a library handling all manipulation of shapes, animations, etc., and an application for actually putting together scenes and animation. Where do you see it making the biggest difference for testing right now?

-Grant

0reactions
eulertourcommented, Dec 16, 2019

@matthewfeickert If you intend to make significant changes to manim I beseech you to join the discord. It’s much, much faster and more responsive than GitHub. It’s linked from the README in case you missed it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding Tests - Manim Community v0.17.0 - Docs
Tests prevent manim from breaking at each change by checking that no other feature has been broken and/or been unintentionally modified.
Read more >
Problems with Cairo · Issue #661 · 3b1b/manim - GitHub
Hi, Im tried to install in mi macbook pro computed with MacOS Mojave and i complete this but when i tried the example...
Read more >
Manim not outputting anything - Stack Overflow
Try using this tutorial, it's excellent. Also, make sure you run the command in the Manim directory, or it won't find the file....
Read more >
The unexpectedly hard windmill question (2011 IMO, Q2)
"windmill" problem on the 2011 IMOHelp fund future projects: ... python library: https://github.com/3b1b/ manim If you want to check it out, ...
Read more >
manimlib - PyPI
Installation. Manim runs on Python 3.6 or higher version. You can install it from PyPI via pip: pip3 install manimlib. System requirements are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found