大约有 15,500 项符合查询结果(耗时:0.0257秒) [XML]
NUnit vs. Visual Studio 2008's test projects for unit testing [closed]
...am going to be starting up a new project at work and want to get into unit testing. We will be using Visual Studio 2008, C#, and the ASP.NET MVC stuff. I am looking at using either NUnit or the built-in test projects that Visual Studio 2008 has, but I am open to researching other suggestions. Is...
How to run test cases in a specified file?
My package test cases are scattered across multiple files, if I run go test <package_name> it runs all test cases in the package.
...
How do you unit test private methods?
...ry that will have some public & private methods. I want to be able to unit test the private methods (mostly while developing, but also it could be useful for future refactoring).
...
How to run a single test with Mocha?
I use Mocha to test my JavaScript stuff. My test file contains 5 tests. Is that possible to run a specific test (or set of tests) rather than all the tests in the file?
...
How do I configure PyCharm to run py.test tests?
I want to start writing unit tests for my Python code, and the py.test framework sounds like a better bet than Python's bundled unittest . So I added a "tests" directory to my project, and added test_sample.py to it. Now I want to configure PyCharm to run all the tests in my "tests" directory.
...
When to use Mockito.verify()?
I write jUnit test cases for 3 purposes:
6 Answers
6
...
Making a private method public to unit test it…good idea?
...
Note:
This answer was originally posted for the question Is unit testing alone ever a good reason to expose private instance variables via getters? which was merged into this one, so it may be a tad specific to the usecase presented there.
As a general statement, I'm usually all for ref...
How do you know what to test when writing unit tests? [closed]
...on’t Know Where to Start?
Start afresh. Only think about writing tests when you are writing new
code. This can be re-working of old
code, or a completely new feature.
Start simple. Don’t go running off and trying to get your head round
a testing framework as well as being
TDD-e...
How is the Linux kernel tested ?
How do the Linux kernel developers test their code locally and after they have it committed? Do they use some kind of unit testing, build automation? test plans?
...
If unit testing is so great, why aren't more companies doing it? [closed]
The first real software company that I worked at was all about the unit testing (NUnit). I don't know that we were real sticklers for it back then -- I have no idea what our code coverage was like and I was writing most of the unit tests. Since then I've run into some companies that do lots of testi...