Unit testing is a method by which individual units of source code are tested to determine if they are fit for use. A unit is the smallest testable part of an application.

learn more… | top users | synonyms

0
votes
1answer
45 views

Is this a good idea to test if text messages are exactly what they are?

I have been told that testing java exceptions' messages is a good thing, but it looks so much like redundancy that I cannot believe it. Consider following fictional code: public class ...
4
votes
2answers
111 views

Best Practice of Unit Test Entry Point

My company just started to practice Unit Testing (MS Test) on an ever-enhancing legacy system. The system is build with a core functions and developers are developing new features (by adding new ...
0
votes
0answers
16 views

Running Jenkins on Ubuntu using XMLRunner [closed]

I am moving to a CI , and so I have Jenkins installed on my system. I was trying to run a suite of unit tests, created using the unittest module. I have an XMLRunner to run the tests, and I would ...
1
vote
1answer
39 views

TypeScript Unit testing tools? [closed]

What are unit testing tools used when we code typescript. What is the best and most efficient?
2
votes
1answer
50 views

Should assertions/expectations be solely in spec or test file?

I'm in the process of creating a unit test and I'm trying to optimize it by creating a helper file to replace some repeated code. In doing so some of my expects will end up in this helper file, as it ...
0
votes
3answers
78 views

GUI testing Tool or Unit Testing Tool

I have done some many testcases Some of the test cases test if the functionality is working and also that you retrieve expected data that shall be displayed after you have clicked on the function. ...
1
vote
4answers
247 views

Is unit and component testing sufficient?

If you can test every line of [your product's] code via unit tests, wouldn't unit testing alone (theoretically) be sufficient? Are there other "necessary" benchmarks of proper test coverage other ...
1
vote
1answer
127 views

Decoupling Unit Tests

I'm trying to learn how to write unit tests the 'proper' way and only test a specific component. (Using http://blog.stevensanderson.com/2009/08/24/writing-great-unit-tests-best-and-worst-practises/ ...
0
votes
0answers
26 views

what is the advantage of using roboectric for android UT over espresso?

I'm new to android testing. I have read espresso is more UI based framework and robolectric is a UT framework. I want to add UT to existing android project with espresso framework in use already. ...
1
vote
2answers
45 views

How high level should be my unit-test?

I have a program with many classes. I manage the DI with Guice, btw. I wanted to write in-progress tests to my code (unit tests and higher level). I have few questions\difficulties: How high ...
1
vote
2answers
38 views

Tool(s) for running C# tests with flow control

I have a collection of REST API tests, WebDriver based tests, Appium based tests and additional tests that run via shell. All written in C#. All tests are written as VS unit tests, and in the case ...
4
votes
1answer
46 views

Running unit tests on production build?

In one of the projects I am involved with, the team is running a continuous integration/continuous deployment and in development they have a bunch of unit tests as part of the nightly builds. When ...
3
votes
2answers
54 views

Why ISTQB says boundary analysis is a black box technique

Boundary analysis is - according to ISTQB - a black box technique. How can anyone agree with that? Most developers write unit tests following equivalence partitioning and boundary analysis to make ...
0
votes
4answers
5k views

How can I do data parameterization in Selenium Web Driver?

I want my test case to run once and test n number of inputs at various positions. Suppose If I want to check a login screen for different members like manager,user,admin,e.t.c then instead of running ...
1
vote
1answer
43 views

How to avoid hidden bugs caused by test doubles?

I just got the Mockito framework for Java to try out mocking with JUnit. Trying it brought me to a basic question that I am sure is obvious but I have had trouble finding any answer for, probably ...
-1
votes
1answer
43 views

How to perform unit testing of embedded C code in CCS for MSP430G2553?

How to perform unit testing of embedded C code in Code Compose Studio (CCS) for MSP430G2553 target board?
3
votes
4answers
166 views

System integration testing

I had some questions around system/integration test. We have a development team and a full QA team, which does customer focused testing for our product. We want to introduce a middle test team which ...
2
votes
3answers
63 views

Framework which allows to execute unit test cases when function under test changed accordingly

Project (written on pure C language) under test has a lot of files with source code and a lot of unit test cases (more than million files and tests). And we don't want to execute all unit test cases ...
0
votes
1answer
57 views

Is there any tool to automate test for installers (WiX or InstallShield)

I was wondering if there is a way to define tests (something like unit test) for installers, specifically installers made in WiX and InstallShield.
2
votes
2answers
77 views

What should I be testing, aside from unit testing, in an agile environment?

The focus always seems to be on short stories and then the code that goes with them tends to have units tests. What other areas or levels should I be testing in? The context is for SaS (Software as ...
15
votes
7answers
991 views

In agile (Scrum) practices, where do I start with making Q&A (testing) more efficient if the team is transitioning from waterfall to agile?

My team has recently transitioned from the traditional waterfall method to practicing Scrum. Being the QA lead, really the only tester on a small team, how can I get the process more aligned with ...
0
votes
2answers
126 views

Selenium Testing in Android Devices without USB connection

How can I do my selenium testing by opening the browser in android device from my PC, without connecting through USB?
0
votes
1answer
91 views

Unit testing with external files

I started writing unit tests recently and need to test reading fields in a spreadsheet (.xlsx and .xls), my biggest question is: Should I create a spreadsheet by code using Apache POI or use external ...
1
vote
1answer
203 views

I'm getting the exception “Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotAvailableException” even though control is available

As the title says i'm getting this exception when running my coded U.I Test. Currently i've researched and i cant pin point on whether this is an issue with IE9 or with my program or even VS itself. ...
1
vote
1answer
36 views

What are typical unit tests for a key-value collection?

I've implemented a key-value collection, that's accessible as a dictionary (so values can be retrieved by keys) and a list of entries (key-value pairs). I'm not a tester myself and I have a hard time ...
0
votes
1answer
139 views

Android / Java Unit-Testing Clarification

While looking up for unit testing for Android applications, I came across a lot of voices over how it is difficult to test-unit an Android app. For example: Dependency issue - why is this a problem ...
6
votes
1answer
440 views

What are the tiers of testing that should be done on a large scale distributed system?

Let's say you have a large distributed system in the cloud that's got dozens of developers working on it and actively adding code to. Your job is to make sure all of the quality gates are used and the ...
5
votes
3answers
433 views

How do you test your unit-tests for false negatives?

How do you test your unit-tests for false negatives (tests that pass but should have failed). For example, I am writing a mission-critical class in JavaScript. To make sure every little nook and ...
2
votes
2answers
156 views

What does “all triples” test suite means?

Suppose there are 4 classifications namely: cancel,find_next,match_case,direction and 1 composition find_what with 2 classifications Attributes and cursor position. What will be the "all triples" ...
2
votes
0answers
652 views

Get Visual Studio (2013 Community) unit test execution messages

Hi, I'm trying to make "nice" test execution report and get next messages: Message StackTrace Elapsed time Test name and Test Outcome are easily taken as TestContext parameters, for output I'm ...
2
votes
2answers
372 views

Asking for help with this Therac 25 bugged code. I don't understand the explanation

Therac 25 is a radiation therapy machine that lead to 3 deaths and 3 injuries in 1980s. That's the worst accidents in history which are caused by software bugs. In 1993, Leveson and Turner did a ...
4
votes
2answers
980 views

Running automated tests for Unity apps on iOS/Android devices?

I want to run automated tests for a game that I am developing with Unity. It runs on iOS and Android devices. As a first step we would like to Launch the game on device type X If the game loaded on ...
2
votes
3answers
102 views

Testability analysis for PHP

Is there any tool that reports on the testability of a PHP codebase? I'm familiarised with what makes the code unit-testable, but I need a way to visualize it so I can easily find which classes can ...
13
votes
5answers
2k views

Should I unit test for null values even if it can never happen?

Lets say I have an event listener that is called whenever a person has changed their location. Here's some Java code. public class LocationManager() { //.. .. ..// public void ...
1
vote
5answers
129 views

Can testers benefit from knowing the status of unit tests?

If a unit test passes, what you can infer is - barred exceptions - that the unit tested works as intended. Nothing can be said about all other components involved since they might be (and usually are) ...
0
votes
1answer
73 views

Android JUnit With Varying Network Conditions

I have written a suite of tests for our company's Android app using Android JUnit and Robotium. I have written a Utility that can enable and disable networking for a device. My Question is: "Is ...
0
votes
5answers
200 views

New to testing - need direction

I just found this site, and I have a question for everyone who can help me. My new passion for IT made me wish to learn more, and I wish to start with Testing. I've learned HTML5 and CSS3, but now I'm ...
0
votes
2answers
75 views

How should I be unit testing the search process of a web app

A lot of the examples for unit testing that I see involve testing that numbers add up. For example, Derek Greer demonstrates unit testing a calculator app, making sure that the equals function does ...
0
votes
1answer
59 views

Testing strategies for testing a Scheduler

We have developed an in-house Scheduler which is based on Rate-monotonic scheduling. We have 6 tasks (5 actual tasks and 1 idle task). Our scheduler works on 1msec timer interrupt. Before sending it ...
3
votes
1answer
2k views

Is there any framework for UI automation testing for Unity3D?

Does anyone know any framework that is compatible/integrated with Unity3D? I'm interested in Unit, Integrated and UI testing.
1
vote
2answers
80 views

Run impacted tests right after code change

I have partial memory recollection of product for .NET and Visual Studio that runs impacted unit tests right after you change one line or something like that. It has some smart code impact detection ...
0
votes
1answer
109 views

Mutation-testing generation [closed]

I' giving a presentation about this paper: https://www.st.cs.uni-saarland.de/publications/files/fraser-tse-2011.pdf Unfortunately I don't understand 2 things: On page 9 table 1: Where are these ...
11
votes
3answers
2k views

Writing test cases before implementation?

So currently at my company it is common practice to write test case high level steps before implementation. Myself and others find this to be a somewhat wasted effort. I often end up blowing away much ...
2
votes
1answer
501 views

Philosophy to write Objective-C unit test

I am a really lost about it. I can study how write and run unit test in Objective-C with XCode, but I don't see how useful it is. In resume, you have to write a method that will be called first to ...
1
vote
2answers
76 views

Unit test for method block that will occur daily

I have a method Fetch, GetExchangeRate and method FetchOnDemand. FetchOnDemand checkds if Fetch is not called during one day it calls it. GetExchangeRate calls FetchOnDemand first then does its ...
0
votes
1answer
120 views

question if this job should be a red flag or not [closed]

I have only talked to the recruiter so far and he seems legit, but recruiters always try to make a job sound fluffy. I literally only applied because im going to be on unemployment and I know I have ...
3
votes
1answer
2k views

Unit Testing The Presenter (in an MVP Context) Using Mock Objects?

Below is some code which is just the simplest MVP project I could make. How can I unit test the presenter using mock objects? Does a mock object mean a completely made up object? In this case, the ...
0
votes
1answer
299 views

CSS/XPATH selector management using python's dictionary

I have a lot of functional tests in Python. As expected , they use a wide variety of css/xpath selectors . I think I read somewhere that a practice is to have a dictionary where each selector would ...
0
votes
0answers
285 views

Cucumber, Rspec, Test-Unit & mini-test Pro Con for interfacing with rake and Selenium Webdriver

I'm in the market for a new test framework. I currently test-unit but I seems like there is some incompatibility between Test-unit , Selenium-webdriver, and modern versions of Firefox. I have had to ...
1
vote
1answer
1k views

How to use databases within the python unittest framework?

I have a bunch of unittests written in python in which messages (text) of any kind is used. Instead of 'hardcoding' the text examples used for the tests I would like to use a database of some kind ...