Giter Club home page Giter Club logo

Comments (14)

leotrs avatar leotrs commented on May 17, 2024 1

@naveen521kk all tests should be done via pytest, as much as possible.

from manim.

PgBiel avatar PgBiel commented on May 17, 2024

Could probably be automated with travis or something as well

from manim.

huguesdevimeux avatar huguesdevimeux commented on May 17, 2024

As @leotrs pointed out, we will have to be aware in the tests that Latex is optional. See #11

from manim.

huguesdevimeux avatar huguesdevimeux commented on May 17, 2024

Closed since #28 #97 are on this (and more up-to-date)

from manim.

leotrs avatar leotrs commented on May 17, 2024

@huguesdevimeux While this can be done with what we currently have, I don't think this has been implemented. To clarify, I meant a "test to certify a clean install" that a user could run after installation, and it would be part of the installation instructions. So the installation instructions would have this as the last instruction: "Finally, run some_command on your terminal. If it finishes without error, then your install of manim is complete. If it shows an error, then please refer to the FAQ/Troubleshooting section".

So I guess all that's missing in order to get that is documentation.

from manim.

huguesdevimeux avatar huguesdevimeux commented on May 17, 2024

@leotrs Oh ok I see, this is a good idea.
But is your idea to do it with pytest ? If yes I think this will be implemented soon.
If not, I think that just telling the user to run SquareToCircle might be enough.
But you're totally right, at least a mention of a such command (potentially with SquareToCircle, I don't know) is missing in the Readme.

from manim.

eulertour avatar eulertour commented on May 17, 2024

I have to agree with @leotrs that this isn't finished yet, and it would ideally be something done through pytest. It'd be much better to have a command which gives clear error messages and covers as many potential pitfalls as it can than to run SquareToCircle. As an example, the latter wouldn't test latex.

from manim.

naveen521kk avatar naveen521kk commented on May 17, 2024

Will a batch/shell script do? Or it should be done with purest?

from manim.

huguesdevimeux avatar huguesdevimeux commented on May 17, 2024

@naveen521kk all tests should be done via pytest, as much as possible.

Hmm are you sure about that ? I mean, this test is meant to be run by a standard user, not a contributor.
I think a shell script is better as there is much more trouble to set up.

What do you think ?

from manim.

leotrs avatar leotrs commented on May 17, 2024

So in the PR I just requested (#324), there are instructions embedded in the installation instructions to certify the installation is clean. For example, after installing latex, it instructs the reader to try it out by executing latex on the console. Would this be a poor man's fix for this issue?

from manim.

Aathish04 avatar Aathish04 commented on May 17, 2024

Why can't we ask them to use pytest, like you suggested?

Heck, we could have a script in /scripts/ install pytest for them, run the tests, make sure they're fine, and uninstall pytest on the way out.

from manim.

leotrs avatar leotrs commented on May 17, 2024

I mean, we can 🤷‍♂️

from manim.

leotrs avatar leotrs commented on May 17, 2024

I think this issue went off the rails a little bit. The original idea is to provide a way for end users to test whether or not their installation is clean. They usually don't have pytest installed. I think having a script that ships with the library, or even a subcommand manim certify-install is the way to go.

OTOH, the documentation already includes instructions on how to certify the installation of each dependency. I think it's safe to close this issue for now. @Aathish04 ?

from manim.

leotrs avatar leotrs commented on May 17, 2024

I think the current documentation does a good job at guiding the user through the whole installation process.

I think this issue has ran its course.

from manim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.