Top "Testing" questions

Software testing is any activity aimed at evaluating an attribute or capability of a program or system and determining that it meets its required results.

What is code coverage and how do YOU measure it?

What is code coverage and how do YOU measure it? I was asked this question regarding our automating testing code …

testing computer-science code-coverage
Spring Test & Security: How to mock authentication?

I was trying to figure out how to unit test if my the URLs of my controllers are properly secured. …

spring security model-view-controller testing junit
Making the Android emulator run faster

The Android emulator is a bit sluggish. For some devices, like the Motorola Droid and the Nexus One, the app …

android performance testing android-emulator emulation
Unit tests vs Functional tests

What is the difference between unit tests and functional tests? Can a unit test also test a function?

unit-testing testing functional-testing
Best way to compare 2 XML documents in Java

I'm trying to write an automated test of an application that basically translates a custom message format into an XML …

java xml testing parsing comparison
Verify a method call using Moq

I am fairly new to unit testing in C# and learning to use Moq. Below is the class that I …

c# testing methods moq
How to check whether dynamically attached event listener exists or not?

Here is my problem: is it possible somehow to check for existence of dynamically attached event listener? Or how can …

javascript testing addeventlistener dom-events
How to properly assert that an exception gets raised in pytest?

Code: # coding=utf-8 import pytest def whatever(): return 9/0 def test_whatever(): try: whatever() except ZeroDivisionError as exc: pytest.fail(exc, …

python unit-testing testing pytest
How to test my servlet using JUnit

I have created a web system using Java Servlets and now want to make JUnit testing. My dataManager is just …

unit-testing testing servlets junit
ReferenceError: describe is not defined NodeJs

I am trying to define some endpoints and do a test using nodejs. In server.js I have: var express = …

node.js rest testing