
测试
missautumn
孜孜不倦的程序员。
展开
-
Moq Quickstart
Moq is intended to be simple to use, strong typed (no magic strings!, and therefore full compiler-verified and refactoring-friendly) and minimalistic (while still fully functional!).Linq to Mock转载 2014-01-29 01:31:29 · 1372 阅读 · 0 评论 -
什么是Mocking framework?它有什么用?
今天我想讲下关于mocking frameworks,并且解释下他为什么有用处。我将给你们展示用和不用mocking framework两种测试方法。假设我们已经有了一个Driver类:public class Driver { private IVehicle vehicleToDrive; public Driver(IVehicle vehi转载 2014-01-29 01:27:34 · 1250 阅读 · 0 评论 -
一、Create a test plan(使用Visual Studio Online创建测试计划)
Create test plans to track manual testing for sprints or milestones. That way you can see when the testing for a specific sprint or milestone is complete.If you haven't already, create your te转载 2014-02-06 21:52:49 · 1878 阅读 · 0 评论 -
二、Create tests(Visual Studio Online中创建测试用例)
Create manual test cases to check that each of the deliverables meet your users' needs. You organize your test cases by adding test cases to test suites.If you haven't already, create a转载 2014-02-06 22:02:27 · 1225 阅读 · 0 评论 -
三、Run tests(Visual Studio Online运行测试)
Run your manual tests and record the test results for each test step using Microsoft Test Runner. If you find an issue when testing, use Test Runner to create a bug. Test steps, screenshots and commen转载 2014-02-08 13:05:42 · 2336 阅读 · 0 评论 -
四、Load test your app(Visual Studio Online负载测试)
Check for performance issues on your web site when you expect an increased user load. No need to use resources and set up your own machines to create this load. You can use cloud-based load testing to转载 2014-02-08 13:13:22 · 2004 阅读 · 0 评论 -
IntelliJ IDEA中如何使用JUnit4
背景最近参与了一个Anroid医疗项目,其中项目底层有很多基础类及通讯类,而且很多涉及复杂的字节操作还有多线程同步及状态机处理。这样的项目做一下TDD还是必要的,尽量项目前期把风险降低一些。现在的问题是本人使用的是IntelliJ开发的Android项目,刚开始还真不知道怎么下手。在参考了一些资料后,总结了一下IntelliJ中配置JUnit测试环境的步骤,希望对大家有帮助。原创 2014-11-15 13:35:29 · 59295 阅读 · 1 评论 -
将Visual Studio的单元测试结果生成HTML报表
Visual Studio单元测试结束后我们可以查看单元测试结果,同时会生成相关的trx文件。如果还查看了单元测试的代码覆盖率,那还会生成对应的codecoverage文件。如果我们需要在集成测试环境执行相关测试并查看测试结果及代码覆盖情况,我们是这样做的:步骤一、使用VSTest.Console.exe执行单元测试之前使用mstest执行相关单元测试时指定.run原创 2016-01-17 20:26:17 · 6160 阅读 · 1 评论