Questions tagged [testing]

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.

For better answers, any questions about Software Quality Assurance & Testing should be asked on SQA - https://sqa.stackexchange.com/. You can ask only programming related questions on Stack Overflow and that too can be asked on SQA

From Wikipedia:

Software testing is an investigation conducted to provide developers and stakeholders with information about the quality of the product or service under test. Software testing can also provide an objective, independent view of the software to allow the business to appreciate and understand the risks of software implementation.

Test techniques include, but are not limited to, the process of executing a program or application with the intent of finding software bugs (errors or other defects).

Software testing can be stated as the process of validating and verifying that a software program/application/product:

  1. meets the requirements that guided its design and development;
  2. works as expected;
  3. can be implemented with the same characteristics.

There are white-box-tests and black-box-tests.

A white-box test verifies the structure of a software product whereas the block-box test validates the requirements.

Software testing, depending on the testing method employed, can be implemented at any time in the development process. However, most of the test effort occurs after the requirements have been defined and the coding process has been completed. As such, the methodology of the test is governed by the software development methodology adopted.

The following types of tests are commonly used to denote the level of detail the tests are focused on:

Agile and Test Driven Development

Agile development model places added emphasis on testing. Test driven development advocates writing a test for a feature before developing the actual feature. Additional information:

Shift-left testing

Shift-left testing is an approach to software testing and system testing in which testing is performed earlier in the lifecycle (i.e. moved left on the project timeline).

49776 questions
16
votes
1 answer

how to print logs in cmd console while execute android instrument test

I open a cmd on windows system, and then input "adb shell am instrument -w com.demo.uia.test/android.support.test.runner.AndroidJUnitRunner" to run android test. I want to print log in the cmd while run the test, can anyone tell me how to write code…
MoMo
  • 161
  • 1
  • 4
16
votes
5 answers

Unit testing in MS Access

I have an Access database project that is getting a bit to large to try to keep track of in my head. I know it is a little late in the game, but better late than never right? I have Googled but found nothing to my satisfaction. Is there any such…
Icode4food
  • 8,504
  • 16
  • 61
  • 93
16
votes
5 answers

Testing for the masses with only one phone and emulator

I have a new android app I put on the marketplace a few days ago. I did quite a bit of testing on my moto droid before publishing it and tried to be very thorough. Well, I got some negative comments back on how it didnt run right on someone's EVO…
Nick
  • 1,340
  • 1
  • 15
  • 23
16
votes
3 answers

Simple and reliable in memory database for fast java integration tests with support for JPA

My integration tests would run much faster if I used in-memory-database instead of PostgreSQL. I use JPA (Hibernate) and I need an in-memory-database that would be easy to switch to using JPA, easy to setup, and reliable. It needs to support JPA and…
topchef
  • 19,091
  • 9
  • 63
  • 102
16
votes
5 answers

Does Django have BDD testing tools comparable to Rails' testing tools?

Ruby/Rails enjoy some really nice and powerful Behavior Driven Design/Development testing frameworks like Cucumber and RSpec. Does Python/Django enjoy the same thing (I'm not talking about simple unit testing like PyUnit)?
Chiron
  • 20,081
  • 17
  • 81
  • 133
16
votes
1 answer

How do you test a dummy rails app when writing a gem?

I'm writing a gem that integrates with rails, and I want to be able to test a dummy app with rspec inside my gem's test suite. The issue comes up when I test if my dummy rails app loads / a couple modules via rspec…
NullVoxPopuli
  • 61,906
  • 73
  • 206
  • 352
16
votes
1 answer

@VisibleForTesting does not work as expected

I wanted to try the @VisibleForTesting annotation for a android unit-test - I have a class with one annotated method: public class Foo { public void bar() { } @VisibleForTesting private void baz() { } } but in the unit-tests I still can…
ligi
  • 39,001
  • 44
  • 144
  • 244
16
votes
2 answers

Find which test covers which line jacoco

I'm running integration test on a huge code base. In coverage report I want to know which test covered a certain line in code. Is there anyway of doing it with jacoco?
Ahmad.Masood
  • 1,289
  • 3
  • 21
  • 40
16
votes
1 answer

Hide output during PHPUnit test execution

I have some var_dumps in my php code (i understand what there must be none in the end, but still), and while tests are running they outputs non necessary information to console, is there a method to ignore some code execution? I've tried /** *…
Itsmeromka
  • 3,621
  • 9
  • 46
  • 79
16
votes
3 answers

Testing Flask routes do and don't exist

I'm creating a large number of Flask routes using regular expressions. I'd like to have a unit test that checks that the correct routes exist and that incorrect routes 404. One way of doing this would be to spin up a local server and use…
Tim Hopper
  • 945
  • 2
  • 13
  • 29
16
votes
5 answers

django how to set request user in client test

I am testing a view and my test looks like: def test_profile(self, user_id): user = User.objects.create_user(username="myusername", password="password", email="abc@testmail.com") self.client.user = user print(user.id) request =…
gamer
  • 5,673
  • 13
  • 58
  • 91
16
votes
6 answers

Anyone knows something like RSPec for PHP?

RSPec is a great ruby test framework (for test driven development), anyone knows something like rspec but, for PHP?
Lucas Renan
  • 3,787
  • 3
  • 28
  • 35
16
votes
3 answers

Running tests as usual against docker containers or dockerize tests?

I'm new to Docker and was reading up on Docker. It's a great way to test systems in a self contained and reproducible standardized configuration (when done correctly). However, in all the things I've read, there doesn't seem to be too much emphasis…
David
  • 3,223
  • 3
  • 29
  • 41
16
votes
3 answers

ChaiJS expect constructor to throw error

I am trying to test that my constructor will throw an error using the Teaspoon gem for Rails, with ChaiJS as my assertion library. When I run the following test: it('does not create the seat if x < 0', function() { var badConstructor =…
ThomYorkkke
  • 2,061
  • 3
  • 18
  • 26
16
votes
6 answers

Android Studio Espresso Testing Error: Empty Test Suite

I keep running into the following error when trying to execute my tests in Android Studio: Test running failed: Unable to find instrumentation info for: ComponentInfo{.test/android.support.test.runner.AndroidJUnitRunner} My test class is in the…
Isaac
  • 163
  • 1
  • 1
  • 5
1 2 3
99
100