Comments (6)
So you'd just want it to make the test file and methods for all the public methods?
from unittestboilerplategenerator.
Yes, basically.
The tools allow us to force consistency across the developers. It is a quick way to set up the test class in the right place and the right way. Ideally, I would like to be able to edit the template for the no mock option, but even a basic no frills option would be a huge help.
from unittestboilerplategenerator.
I'll put that support on the backlog. For now you could edit the VisualStudio/Moq template and take out the parts you don't need. It will default to Moq when it can't detect any mocking framework.
from unittestboilerplategenerator.
Sounds good. Thanks for responding on these.
from unittestboilerplategenerator.
Problem with this approach is that it makes it so you can't use boilerplate to render with Moq on a different project without changing the templates back again.
This is potentially an issue when your requirements for testing your organization's in-house code is different from that of 3rd party open source projects your organization contributes to.
However, it may be more useful to make the Mocking library option "Custom" rather than "None" as "None" implies no mocking and there is also a use-case for changing the parts to reflect other mocking libraries which aren't currently supported.
from unittestboilerplategenerator.
Implemented ability to choose "None" for a mock framework in 1.10.5.
In the generated test methods it will have "TODO" for constructor parameters as it has no way to know how to fill them.
from unittestboilerplategenerator.
Related Issues (20)
- add "Go to Test" context menu item HOT 3
- Methods template HOT 2
- Add boilerplate for internals HOT 1
- Not implemented Exception HOT 5
- Incorrect testing framework detected and selected (xUnit) HOT 5
- NullReferenceException when attempting to generate test class HOT 2
- Customize TestMethods template HOT 1
- Unit Test Creation with SQL Server Database Project HOT 1
- "Could not find class declaration" exception thrown when generating boiletplate HOT 2
- Edit Template for Test method HOT 11
- Method not found HOT 4
- Add Support for the Pose framework HOT 1
- Error at generating UnitTest MSTest "System.NullReferenceException" HOT 3
- Failing to generate unit test for structs HOT 4
- Generating unit test on wrong unit test project
- Crashes when testfile already exists HOT 2
- Creating boilerplate unit testing project template HOT 2
- Using "Import Project" in the test csproj (embedding the test framework in props) stops auto detection HOT 1
- Request of supporting JustMock HOT 1
- Getting error while generating test cases HOT 1
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 unittestboilerplategenerator.