大约有 15,480 项符合查询结果(耗时:0.0508秒) [XML]
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...
Comparison of C++ unit test frameworks [closed]
...w there are already a few questions regarding recommendations for C++ unit test frameworks, but all the answers did not help as they just recommend one of the frameworks but do not provide any information about a (feature) comparison.
...
How do I write unit tests in PHP? [closed]
...but for some reason I can't seem to figure out how exactly I'm supposed to test something. Could someone perhaps post a piece of example code and how they would test it? If it's not too much trouble :)
...