Giter VIP home page Giter VIP logo

Comments (4)

304NotModified avatar 304NotModified commented on May 30, 2024

Could you please elaborate bullet 2?

Bullet 3 is the most important I think.

from unitverse.

mattwhitfield avatar mattwhitfield commented on May 30, 2024

So for bullet 2 - my general aim with the extension has not to be really specific about the output that is generated - so, for example, if a new method of deriving a default value for a type is added, I don't care so much that it is done in an exact way. What I care most about is that the code compiles - I feel like it's really important to be able to add tests that compile. Obviously the test generator isn't going to generate tests that pass, except for basic cases. So if the tests compile when they are generated, then the tool is 'getting out of the way' and the developer can immediately think about how they want to go about testing the code they just wrote, instead of having to fix a bunch of broken code.

So there are some tests that check output - in the .Specs project - and they check things like 'has a mock been generated for this dependency' and 'is this basic assert emitted'. But they are not designed to break every time something minor changes.

Does that make sense?

from unitverse.

mattwhitfield avatar mattwhitfield commented on May 30, 2024

Oh, I guess one more thing to add - the example generator / build protection - that generates test classes for a bunch of known samples, and then emits markdown that form the 'examples' section in the documentation. It basically runs every build (when the example generator has built, it is called by the msbuild script in the post build actions). So then, if you have changed the output, you see the changes in the example documentation. And you have to check those in. If the example generator runs in the GitHub Actions build and produces output that is different (i.e. there are uncommitted changes in the docs folder) then it will break the build. So if you do change the output, you have to 'accept' that by committing the newly generated markdown docs.

from unitverse.

mattwhitfield avatar mattwhitfield commented on May 30, 2024

Added 👍

from unitverse.

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.