Comments (4)
Could you please elaborate bullet 2?
Bullet 3 is the most important I think.
from unitverse.
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.
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.
Added 👍
from unitverse.
Related Issues (20)
- Stuck at "Waiting for project initialization..." HOT 6
- Standardise references to the Unitverse options file name HOT 2
- Support for deriving generated unit test classes from a base class HOT 2
- Supress generation of PropertyTester HOT 5
- Value generation for IEnumerable should produce a sequence
- (Re)Generating tests after initial generation is not updating the generated unit test class when using file scoped namespaces HOT 1
- Set fixture as a class private field HOT 3
- Add WithParameterName() when check ArgumentNullException HOT 2
- Mock setup even if dependency is called in a private method HOT 10
- Test types called Array generate invalid code HOT 1
- Multiple generic parameters aren't disambiguated
- Configuration is ignored HOT 4
- Need support for ARM64 HOT 2
- Allow PropertyTester to use protected methods HOT 2
- Automatic mock verification can be confused by 'this.fieldName.Method' syntax
- Set up mock dependency void calls as verifiable HOT 2
- XML comments not generated for subsequent generated tests HOT 8
- Support for Shouldly HOT 7
- Option to split naming convention for mock vs non-mock dependency fields HOT 2
- Feature Request: add InternalsVisibleTo when creating tests for internal classes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unitverse.