Verifying the behavior of a software system against the expected behavior of that system.
0
votes
6answers
158 views
Cheap implementations in fundamental TDD
This is a question concerning the fundamental approach of TDD, so the example below is as simple as possible which might make it seem a little useless; but of course the question applies to more ...
-2
votes
0answers
34 views
What is tool of your choice for Javascript testing [on hold]
Currently I'm workin with jQuery and use Qunit for testing, but it seems to me not optimal library for testing.
So what tools are you using for javascript testing?
3
votes
1answer
79 views
How do you write tests for methods that interact with data in system files?
I'm trying to be proactive about writing an iOS app in a test-driven manner. However, I'm stumped as to how to test a method that is to interact with real system files. For those familiar with iOS, ...
3
votes
5answers
62 views
How QA/testing process can be evaluated?
I asked this question on Programmers about a crazy idea to evaluate how testers are doing their job. From the answers/comments, it seems community also considers that as a crazy idea. This is a spin ...
0
votes
2answers
98 views
Should methods perform checks that they accomplished the task they were built for? or should they just throw an exception?
What are some pro's and con's of validating your performed the task intended?
public static bool UploadFile(string filename)
{
// 1. upload the file
// 2. check to see if the file now exist ...
1
vote
3answers
43 views
Replace repeated timestamp with variable in tests
I have couple hundred tests and I work with date/time a lot. In some tests, I aim for output format, elsewhere, I check date ranges. Therefore, my tests have lots of these:
FactoryGirl.create(:foo, ...
3
votes
2answers
144 views
Software development - The industry & general trends / Bad practices [duplicate]
I am a Web Developer and part of a small team working on an abundance of projects. This is my first "actual" real company after graduating with a degree in computer Science and I have about 2 years ...
-1
votes
1answer
47 views
Where should I create utility classes that are used by unit tests, integration tests and functional tests?
Say I have a project that's using the standard Maven/Gradle project directory structure, with the source file directory like this:
src
├── functTest
├── integTest
├── main
└── test
What would be ...
1
vote
3answers
107 views
What does stubbing mean in programming?
I often hear the term stub, stub out somethings, stubs, ...etc. What does stubbing mean in programming, where the word come from? and in what contexts it can be used?(just examples)
5
votes
4answers
551 views
How to test a method which is not as much as a unit, because it is more of a 'orchestrator' / 'process' / 'controller' / 'coordination' class [duplicate]
I want to test a method which is not as much as a unit, because it is more of a 'orchestrator' / 'process' / 'controller' / 'coordination' class.
This is the case:
I have four unit tested classes:
...
193
votes
20answers
27k views
Leaving intentional bugs in code for testers to find
We don't do this at our firm, but one of my friends says that his project manager asked every dev to add intentional bugs just before the product goes to QA. This is how it works:
Just before the ...
2
votes
1answer
187 views
Any reasons NOT to write self testing Python code?
Whilst writing tests I was giving considerable thought to the question of how to ensure I have tests for every class in my application.
It occurred to me that maybe I should just put the test code ...
1
vote
1answer
69 views
Using conditional feature compilation/inclusion for release versioning
I have been playing with the following idea: commonly when different release series (1.0.x, 1.1.x, development code) of a product are maintained in parallel one uses different branches within a ...
1
vote
1answer
45 views
In boundary-value analysis, why test min+1 along with min?
In boundary analysis testing, some authors suggest testing MIN-1, MIN, MIN+1 (and the same for MAX).
Also for 1-100 range (if A>=1 && A<=100), test cases would be: 0,1,2 and 99,100,101.
I ...
2
votes
3answers
236 views
How does a software developer know if the target hardware is fast enough to run the software? [duplicate]
How do software developers manage to know if their software will run on the target hardware they are developing to? Many developers today work on machines much faster than the intended platform. What ...
4
votes
1answer
70 views
Summarizing time spent on UI tests
I was working with a team on a web-based software. We have written ~70-80 Selenium test for the product. Mainly happy-path tests with some regression ones for bugs reported by users.
It was the first ...
1
vote
2answers
151 views
How to add rigor to my testing?
I work on a small/medium sized Java application. Over time, I've tried to ensure that the tests which I write are "good" tests, and that there's plenty of them. Hence I've been looking into various, ...
-1
votes
2answers
126 views
Scheduling a Jenkins job to only run integration test [closed]
My current company has a Jenkins/DotCi setup. Our current process for CI is when dev pushes to github, jenkins runs unit tests on all branches and reports back to us via email if the unit tests ...
1
vote
2answers
90 views
Java applets with Safari on Windows as compared to Safari on OS X [closed]
I have a developed an Applet which works fine on Chrome/IE/FF on Windows. I am not expecting any users for Safari on Windows but there might be the odd user who may be on a Mac.
As of now, I don't ...
0
votes
1answer
109 views
Testing - How to test if you are actually testing the code?
I was thinking about unit tests and code coverage, and I came up with this thought:
It is possible to have 100% code coverage and not test 100% of your code.
For example:
function ...
0
votes
1answer
47 views
Testing - Test for Specific Paths?
When (unit) testing, is is bad to expect the code to use certain paths.
For example, should I be testing for specifically "/build/static/public/css/", or just that server.cssPath has been set to a ...
1
vote
2answers
98 views
Should you test development features?
Is it a good practice to test features that only run in a development environment, or just a waste of time?
Specifics: The item that is prompting this question is a line of code that dynamically ...
1
vote
2answers
113 views
TDD and Writing Tests for File Processing
These questions are very similar: TDD for batch processing: How to do it? and TDD: how to test file outputs? but I'm still left wondering some things
The app processes files/pdfs. It takes them from ...
3
votes
1answer
82 views
How use same Behavior Drive Development (BDD) stories across platforms?
I'm writing an app that has a client for iOS, Android, and the web. The server is hosted on Google App Engine (Java). REST is used for the communication between clients and server.
In order to ensure ...
-1
votes
1answer
60 views
Starting a big application with unit testing [closed]
I am learning test driven develeopment and read some books about TDD. I learned rules of unit testing. How can I write unit test, how can I select test method names, Act, Assert, Action and like this. ...
0
votes
1answer
61 views
What's good about statement coverage?
When it comes to code coverage, you often hear about the flaws of statement coverage criteria. We're told that statement does not take into account control structures and branches thereof, and is ...
0
votes
1answer
115 views
Term to describe pre-canned objects for use in testing
I have forgotten the term for a class that provides pre-canned objects for use as test data.
e.g. If I'm testing a payment module and I need credit card objects of different types, I might have a ...
5
votes
2answers
204 views
How detailed should QA aim to be?
When QA discovers an issue during testing should they...
Log the bug with the test case and scenario information and move on testing?
Try investigating to determine why the bug is happening?
I ...
0
votes
1answer
37 views
Is Exploratory testing Context Driven testing?
I do not think so, yet many sources say it is.
As I understand it:
Context-driven testing means that when planning testing on our project, I choose the methods, practices, etc. in order to fit the ...
1
vote
1answer
97 views
How do I Create Automated UI test code for application developed using Domain-Driven-Design with very little concrete UI requirements?
We are developing an application using Domain-Driven-Design(DDD).
We have to come up with Automated UI Test code.
The customer has used 3rd-party GUI Administration template ...
7
votes
4answers
873 views
Is there something as a bug-free application? [duplicate]
We are developing an application that goes through many testers before reaching our client.
Finally, when it reaches the client, they find some more bugs and report to us, and this has become a ...
1
vote
2answers
230 views
Why all consider UAT a validation activity? It contradicts the original idea
Virtually any book dealing with software testing mentions that user acceptance testing (UAT) is an ultimate validation activity, often quoting Boehms informal definition: "Validation: Are building the ...
5
votes
3answers
95 views
Where should I store test data?
I have smaller unit tests that use small snippets from real data sets. I would also like to test my program against full data sets for a multitude of reasons. The only problem is that a single real ...
0
votes
2answers
106 views
How to best do cross-browser cross-platform visual CSS regression testing? [closed]
Background:
Visual CSS regression testing is where you screenshot (part of) one version of a webpage in a browser and compare it against a screenshot of the previous version of the same webpage in the ...
1
vote
0answers
89 views
Unit Testing a stateful framework such as Phaser?
I'm currently writing a game in TypeScript and the Phaser framework. Phaser describes itself as an HTML5 game framework that tries as little as possible to restrict the structure of your code. This ...
15
votes
3answers
1k views
How to test when arranging the data is too cumbersome?
I am writing a parser and as a part of that, I have an Expander class that "expands" single complex statement into multiple simple statements. For example, it would expand this:
x = 2 + 3 * a
...
1
vote
1answer
141 views
Unit test approaches other than test-first and test-last? And what about variants of them? [closed]
I'm wondering if there are other approaches, old or new, to writing unit tests, and how viable they are, other than the traditional and tdd unit testing approaches.
I know there is behavior-driven ...
1
vote
2answers
85 views
Should you mock key-value stores/aggregators
I've always been taught that your tests should run in isolation, and other than a db for ActiveRecord etc., your tests should not rely on any external software/services. e.g. I always mock my other ...
0
votes
0answers
58 views
Automatically verifying INSERTs when building a PHP(5.3.3) application
I am building a form in PHP. I would like to automatically verify that INSERT queries are successful, and populate data correctly, as opposed to running queries in Workbench or MySQL with every code ...
2
votes
2answers
92 views
Why in cyclomatic complexity we add 1 for operators within a condition?
I know that basically, CC can be computed as number of decision + 1. In addition, every logical operator in the condition causes CC to increase by 1. But why?
Having the code if(A || B || C) else... ...
5
votes
6answers
500 views
When should you start unit testing? (during which development stage?)
I'm currently learning about unit testing, specifically JUnit (with Java).
Searching the web I see many threads talking about why you should use it, what type of methods you should use it with but I ...
3
votes
1answer
116 views
Is it reasonable for a client to expect automated test scripts as project deliverables?
Our company is currently halfway through a software project with a consulting firm. As someone who will be taking ownership of the project after the consultants finish, is it reasonable for our ...
0
votes
1answer
98 views
Does it make sense to express reliability as a ratio of number of tests and system failures? [closed]
I have seen a reliability of the system expressed like this:
Rel=No of tests executed / Sum of crashes or other critical events
Does it make sense and what actually is the output?
3
votes
2answers
64 views
Cross device testing for web development
Currently, I do not have a fixed process for cross device testing other than randomly asking the people around my co-working space to test my site on whatever device they have on-hand. This is quite a ...
1
vote
2answers
376 views
How to set an ungoogleable coding test? [closed]
Question
In a coding test (for example), what is an example of a type of question that cannot be easily googled to find the answer? Is there a formula that can be used to create questions that are ...
0
votes
3answers
112 views
Unit testing method that calls multiple private methods
I've been reading a lot about unit testing recently and there seems to be a debate online about whether private methods should be tested or not.
If I have an interface that exposes one method, but ...
0
votes
2answers
78 views
Should I put the name of the method I'm testing in the Unit Test method's name/assert message?
Given that a method's name might change in time, is it a good idea to specify the name of the method whose return value I am asserting as a part of the Unit Test method's name? What about the message ...
-1
votes
1answer
93 views
Do you spend your effort to reuse obsolete unit tests or rewrite them entirely? [closed]
I have this javascript project which has a unit test suite(about 200unit tests) that covers about 11.31% of the code that it was testing. The project has evolved greatly but the unit tests where never ...
11
votes
2answers
2k views
As back-end developers, should we learn software testing? [closed]
As a junior developer, I'm working in a company that develops software for the airline industry. We have a test team, so I don't have any motivation to learn testing software. My friend is working for ...
0
votes
1answer
185 views
Create fake HTTP server to simulate an API for testing
I'm looking to mock responses from an external API service that returns JSON during live events.
The first response would contain (fake) events that have happened up to time X, the second response ...