Linked Questions

1030 votes
18 answers
345k views

I know how I use these terms, but I'm wondering if there are accepted definitions for faking, mocking, and stubbing for unit tests? How do you define these for your tests? Describe situations where ...
tvanfosson's user avatar
  • 534k
733 votes
9 answers
388k views

What is Mocking?                                                                                                    .
masoud ramezani's user avatar
172 votes
11 answers
133k views

What is the real difference between acceptance tests and functional tests? What are the highlights or aims of each? Everywhere I read they are ambiguously similar.
JavaRocky's user avatar
  • 20.1k
173 votes
11 answers
103k views

Are functional testing and integration testing the same? You begin your testing through unit testing, then after completing unit testing you go for integration testing where you test the system as a ...
Mishthi's user avatar
  • 2,037
90 votes
7 answers
50k views

As of Android Studio 1.1rc there's Unit testing support and I'm wondering what's the difference between Android Instrumentation Tests and Unit tests. As I understand it: Unit tests are useful for ...
Joen93's user avatar
  • 1,217
28 votes
8 answers
8k views

I have recently heard of Functional Testing over Unit Testing. I understand that Unit Testing tests each of the possibilities of a given piece of code from its most atomic form. But what about ...
Will Marcouiller's user avatar
28 votes
3 answers
52k views

After reading about testing private methods in Python, specifically referring to this accepted answer, it appears that it is best to just test the public interface. However, my class looks like this: ...
darksky's user avatar
  • 21.2k
28 votes
3 answers
27k views

What is the difference between functional test and end-to-end test? Techopedia says that end-to-end test is a methodology used to test whether the flow of an application is performing as ...
Brian's user avatar
  • 13.8k
15 votes
2 answers
20k views

Using Spring + Hibernate and transactional annotations. I'm trying to test the following: call a method that changes a User object then calls a @Transactional service method to persist it read the ...
user2166452's user avatar
9 votes
2 answers
2k views

I'm struggling to figure out what should be excluded from functional tests (in my case, using Rails, but I guess the framework's probably irrelevant). I'm under the impression that I shouldn't bother ...
user avatar
2 votes
1 answer
13k views

I started today to use PHPUnit Tests on PhpStorm. I could test almost all functions, except the functions which requires database connection. Function: public function getProductID() { $this-&...
62009030's user avatar
  • 347
4 votes
3 answers
2k views

Hey there i have a problem with my Unit Testing in Delphi XE3 i have a project that consist of 1 MDIForm and allot of MDIChild forms then problem is that when i run test on my MDIChild forms i get ...
AirWolf's user avatar
  • 597
4 votes
1 answer
4k views

I am trying to write unittests for a loopback model using jasmine. My model has the usual CRUD endpoints but I have defined a custom '/products/:id/upload' endpoint which expects a form with files. ...
Leonidas Kapsokalivas's user avatar
2 votes
3 answers
3k views

I am completely beginner about UI and unit tests, and very confused about how to use them, as well as how to differentiate them. So I have thought about the following use case: I have a user who has ...
Rob's user avatar
  • 4,253
1 vote
1 answer
2k views

I am trying to test some of my controllers through Unit Testing. But there is something strange happening. With the following code in my testcase: public function ...
Matthijn's user avatar
  • 3,244

15 30 50 per page