Top "Unit-testing" questions

Unit testing is a method by which individual units of source code are tested to determine if they are fit for use.

Comparison of C++ unit test frameworks

I know there are already a few questions regarding recommendations for C++ unit test frameworks, but all the answers did …

c++ unit-testing cppunit googletest boost-test
How to read a text-file resource into Java unit test?

I have a unit test that needs to work with XML file located in src/test/resources/abc.xml. What …

java unit-testing
How to test that no exception is thrown?

I know that one way to do it would be: @Test public void foo(){ try{ //execute code that you expect …

java unit-testing junit exception-handling junit4
Writing unit tests in Python: How do I start?

I completed my first proper project in Python and now my task is to write tests for it. Since this …

python unit-testing testing
What is Mocking?

What is Mocking?                                                                                                    .

unit-testing mocking
Running unittest with typical test directory structure

The very common directory structure for even a simple Python module seems to be to separate the unit tests into …

python unit-testing
How do I run all Python unit tests in a directory?

I have a directory that contains my Python unit tests. Each unit test module is of the form test_*.py. …

python unit-testing testing python-unittest
Unit testing private methods in C#

Visual Studio allows unit testing of private methods via an automatically generated accessor class. I have written a test of …

c# unit-testing
Override default Spring-Boot application.properties settings in Junit Test

I have a Spring-Boot application where the default properties are set in an application.properties file in the classpath (src/…

java unit-testing spring-boot
What's the difference between unit tests and integration tests?

What's the difference between unit tests and integration tests? Are there different names for these tests? Like some people calling …

unit-testing integration-testing