Code Monkey home page Code Monkey logo

Comments (7)

mrdoob avatar mrdoob commented on May 5, 2024

Uh, I have 0 experience with unit testing :D

from three.js.

bnolan avatar bnolan commented on May 5, 2024

lol ok i'll do something. maybe some markdown documentation too?

from three.js.

mrdoob avatar mrdoob commented on May 5, 2024

Sure! Some parts of the API seem to be getting pretty stable. I guess some documentation would be helpful for people trying to use the lib :)

from three.js.

em avatar em commented on May 5, 2024

Was this intentionally closed? : )

I think a good place to start would be adding expects to the existing examples and at least have some smoke tests. Then work down into core.

from three.js.

mrdoob avatar mrdoob commented on May 5, 2024

Feel free. I don't think it's something I would like to maintain myself though.

from three.js.

em avatar em commented on May 5, 2024

If I put the infrastructure in place and tested the current codebase, would you add new tests to future changes? That's key , since one of the benefits of tests is preventing regressions, because new features tend to introduce bugs in existing features. It's a common practice in TDD to ensure that every bug fix also has a new test added that defines the decision and locks in the fix. And stable releases can't have failing specs. Would you be on board with that? Or do you have an idealistic disposition to TDD?

BTW: It's actually really surprising to me that the project is as stable as it is without any tests. I've never seen anything like it. Normally if something gets to this size it starts to collapse under its own gravity as new features break things. I think the reason for this is A) you have some incredibly strong powers of foresight, and as such the the architecture is very well thought out from the start. and B) you probably pop open examples before committing changes to make sure they still work, which is some manual QA.

from three.js.

mrdoob avatar mrdoob commented on May 5, 2024

Yeah, we use the examples as tests. And we have incredibly strong powers of foresight too ;)

from three.js.

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.