Linked Questions
25 questions linked to/from What is the difference between unit tests and functional tests?
1030 votes
18 answers
345k views
What's the difference between faking, mocking, and stubbing?
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 ...
733 votes
9 answers
388k views
What is Mocking?
What is Mocking? .
172 votes
11 answers
133k views
Difference between acceptance test and functional test?
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.
173 votes
11 answers
103k views
What is the difference between integration testing and functional testing? [closed]
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 ...
90 votes
7 answers
50k views
Difference between Android Instrumentation test and Unit test in Android Studio?
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 ...
28 votes
8 answers
8k views
Unit Testing or Functional Testing? [closed]
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 ...
28 votes
3 answers
52k views
Testing Private Methods in Python: Unit Test or Functional Test?
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: ...
28 votes
3 answers
27k views
Difference between functional test and end-to-end test
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 ...
15 votes
2 answers
20k views
How do you test Spring @Transactional without just hitting hibernate level 1 cache or doing manual session flush?
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 ...
9 votes
2 answers
2k views
Confusion: leave out functional tests that cover same ground as unit tests?
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 ...
2 votes
1 answer
13k views
PHPUnit - PHP Fatal error: Call to a member function GetOne() on null
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-&...
4 votes
3 answers
2k views
DUnit Cannot create form. No MDI forms are currently active
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 ...
4 votes
1 answer
4k views
Unit-testing remote methods of a strongloop loopback.io model
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. ...
2 votes
3 answers
3k views
iOS - How to differentiate UI and Unit tests, and how to use them in this concrete situation?
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 ...
1 vote
1 answer
2k views
Laravel Unit testing controllers error when using multiple methods
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 ...