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.

Test if string is URL encoded in PHP

How can I test if a string is URL encoded? Which of the following approaches is better? Search the string …

php testing url-encoding
iOS Simulator to test website on Mac

I need to test my site on an iOS device from a Mac. Is there a desktop simulator available to …

ios testing safari-web-inspector
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 …

testing functional-testing acceptance-testing
Including a hyphen in a regex character bracket?

$.validator.addMethod('AZ09_', function (value) { return /^[a-zA-Z0-9.-_]+$/.test(value); }, 'Only letters, numbers, and _-. are allowed'); When …

javascript jquery regex testing validation
What is the difference between mocking and spying when using Mockito?

What would be a use case for a use of a Mockito spy? It seems to me that every spy …

java testing mocking mockito
How to test an SQL Update statement before running it?

In some cases, running an UPDATE statement in production can save the day. However a borked update can be worse …

mysql sql database testing myisam
Is there a Social Security Number reserved for testing/examples?

Is there a canonical "test SSN" that is used by convention, so is understood by all who see it that …

testing test-data
toBe(true) vs toBeTruthy() vs toBeTrue()

What is the difference between expect(something).toBe(true), expect(something).toBeTruthy() and expect(something).toBeTrue()? Note that toBeTrue() is …

javascript testing jasmine protractor jasmine-matchers
Integration Testing POSTing an entire object to Spring MVC controller

Is there a way to pass an entire form object on mock request when integration testing a spring mvc web …

java spring testing spring-mvc integration-testing
ScalaTest in sbt: is there a way to run a single test without tags?

I know that a single test can be ran by running, in sbt, testOnly *class -- -n Tag Is there …

scala testing sbt scalatest