Questions tagged [testing]

Verifying the behavior of a software system against the expected behavior of that system.

42 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
1answer
391 views

Boundaries of unit testing between my code and a library or sub-component

Background: I am new to testing in general, and have been studying it in context of JavaScript, specifically React.js, front-end development (actually new to this as well). For the question, I have ...
5
votes
1answer
318 views

Determining if webgl code will work on a variety of hardware

I have some javascript/webgl code. I want to have some idea of whether it will work for someone with a different browser/machine/gpu. This is difficult, because there's so much diversity in support ...
4
votes
0answers
58 views

Designing a test system on server/message level for large legacy application

I am working on introducing tests to an old system. Because of the amound of technical debt, we have landed on component/interface testing. The system is a servies of servers which sends messages in ...
4
votes
0answers
174 views

How do I test my non-Ruby website using Ruby?

I would like to build some Ruby tests to test my non-Ruby website. I love the Ruby testing tools (webrat, capybara, etc.) but they seem to be targeted to testing local sites. How can I use these ...
3
votes
0answers
2k views

Should I mock ObjectMapper in my unit tests?

I have different services in a spring application that have a dependency on Jackson ObjectMapper, the unit tests rely on @InjectMocks to inject all the various dependencies to the class that is under ...
3
votes
0answers
117 views

How to determine the reason why Firefox has poor performance on my web application?

I am developing a complex web application, which is working fine on Chrome and IE, but recently has developed huge performance issues on Firefox which lead us to block it's usage completely to avoid a ...
3
votes
0answers
1k views

Creating an automated test framework for UI smoke testing

I am doing my thesis on the subject of automated UI testing at a company that applies continuous integration to their projects. The company builds intranets in Microsoft SharePoint 2013 and my task is ...
2
votes
0answers
68 views

A question about cyclomatic complexity

Assume the flow graph of a function is below (sorry I have forgotten the code of the function): And when I try to calculate the cyclomatic complexity: When I use the edge and node to calculate it, V(...
2
votes
0answers
51 views

Better approach of testing groups of small services with or without dependency injection

Let's assume, that frameworks I use, provide some kind of dependency injection automatically available in testing environment. Let's also assume, that I have a lot of micro services in my application....
2
votes
0answers
320 views

What's the best way of testing client/server programs using Bamboo?

At my company, we've standardized on Bamboo for continuous integration. One of our products is a Server + a set of clients, and we want to test many different combinations. The way we do it is to have ...
1
vote
1answer
98 views

Which git workflow for micro-services and testing

I would like to know what best practices exists out there with regard to micro services, CI/CD, testing and Git workflow, especially the way of working given the constraints that a) nothing should ...
1
vote
1answer
90 views

Should snapshot tests compare against stored test data or data from a database?

I have a method GetReportAsync that takes one XML and generates another: public async Task<string> GetReportAsync(string id) { // Get Order.xml from a file database var order = await ...
1
vote
0answers
23 views

Preventing setting regression with configuration tied to a build

I have inherited a distributed application with a lot of legacy configuration management. Currently the application does not get it's settings updated with an application update. The flow looks ...
1
vote
0answers
196 views

Write integration tests with React using Jest

Let's imagine that we have this Page component: const Page = () => <> <Topbar /> <Drawer /> <Content /> </> I'd like to test some interaction within ...
1
vote
0answers
87 views

Perspective based reading - Artifact created

From what I have learned, in Perspective based reading, the document/code/etc., is inspected from different perspectives. We consider roles like software designer, tester or user. Each role follows ...
1
vote
0answers
189 views

How to debug Icalendar URL in Google Calendar

I'm developing a ICalendar service. If i add the URL in outlook everything looks correct, but if i import the URL in Google calendar it does not show the description of event. As google calendar ...
1
vote
0answers
39 views

Integrating Testing with Model Checking

So with Model Checking you have a specification and the model checker automatically goes through your program's states and checks if it matches the specification. What I don't understand is where ...
1
vote
0answers
64 views

How to improve this web app testing process?

My boss had an idea of simplifying tests to English like statements so that non programmers could write tests as well. We chose Lisp as the syntax in which the tests would be written. This testing ...
1
vote
0answers
704 views

ASP.Net MVC - Implementing a Test Environment

I would like to implement some sort of test environment for ASP.Net projects. I am trying to implement this as an alternative to mocking the entity framework. Here is what I am trying to achieve : ...
1
vote
1answer
263 views

How to Mock Test Data for complicated Integration/GUI automated tests

General overview We recently had lots of problems with automated tests in our team. Part of it was that the people designated to writing them had little experience. After this failed, we incorporated ...
0
votes
0answers
49 views

Idiomatic Golang Unit Testing

Currently I have some code which is structured like this: type Service struct { // some dependencies } func (s *Service) FindStuff(ctx Context) { // this signature cannot be changed // some ...
0
votes
0answers
30 views

What is the best way to easily tamper with request data for purposes of vulnerability testing on a web site?

When developing web pages, it's often critical to test and verify that the application is protected against various forms of bad input, even if the front end offers some discouragement against the bad ...
0
votes
1answer
246 views

How can we better maintain a large amount of DbUnit datasets?

The project I'm currently working on a Spring Boot project, and I have a question regarding testing against the database. Our testing tech is currently JUnit 4, Mockito and DbUnit, and we test ...
0
votes
0answers
91 views

Setup tests that use the Azure storage emulator in Azure DevOps

I have a project with the code hosted in Azure DevOps and I'd like to start using the Pipelines feature to handle the builds. My first problem is that I have a set of tests that use Azure storage ...
0
votes
0answers
275 views

Testing REST API with nested object creation and endpoint transactionality

I'm building a location based REST API using Spring Boot, and I have run into a bit of a testing philosophy question. I have an object called Location that, among other things, requires a Google ...
0
votes
0answers
49 views

How do I know the depth of “k” for characterising set when testing FSM?

I am supposed to design the tests for state machine software. I have covered all states and all transitions. The last step is to detect the hidden states (states that look the same but internally ...
0
votes
0answers
130 views

How to make my E2E tests verify results of an action?

I'm working on a project with an AngularJS app that talks to a RESTful API. We've just started writing E2E tests for the app in Protractor. I'm fairly comfortable with unit testing but new to end-to-...
0
votes
0answers
91 views

Is there value is putting test/build outputs under source control?

My colleagues insist on ploughing every bit of output data they can into subversion. I can't see the value in this practice and would much rather use a file system. The key offenders are build and ...
0
votes
0answers
291 views

Domain analysis for discrete values - ON and OFF points in these cases

Following my previous question (with great answer from Bart van Ingen Schenau), I noticed a discrepancy I could not wrap my head around: Bart mentioned that: The point ON the boundary is by ...
-1
votes
1answer
57 views

How to create input data for unit tests for an API client?

I am building the initial set of unit tests for my team's legacy API client system. We have been writing integration tests, but have no unit tests. It's a Sinatra server that accepts requests from our ...
-1
votes
1answer
67 views

How to test and what kinds of test to write for Request Handlers that use Repository layer?

Consider class below: class FillTestBySerialHandler { /** * * @var FillTestBySerialRepository */ private $fillTestBySerialRepository; function __construct(...
-1
votes
1answer
962 views

Best practice - Single or Multiple source code repository

As mentioned here: The main aim of CI is to prevent integration problems, referred to as "integration hell" Our project is a 3-tier web application, with frontend(Angular 6), backend(Springboot) &...
-1
votes
2answers
73 views

How to test functionality that only creates input to a large middle-ware dependency

I am a new lead developer that has recently started at a new company, I have been assigned to a project that is trying to consolidate functionality from lots of different applications already in ...
-1
votes
1answer
2k views

Test Cases in an Interview Setting

In the first cracking the coding interview video Ms. McDowell talks about candidates that begin by writing test cases in whiteboard interviews. How would one go about this? For example, the ...
-1
votes
1answer
41 views

Testing Application Helper that Depends on Controller

I am working on practicing TDD/BDD/ATDD and I am working on a rails application. I created a helper method that depends conditionally on the type of controller being tested. module ApplicationHelper ...
-2
votes
0answers
22 views

Automating performance tests for python code in a CI

My apologies in advance for a question that might seem trivial - I am a mostly solo dev in academic environment and a lot of industry best practices don't necessarily make it here. Several of my ...
-2
votes
0answers
31 views

How to improve the service design to test it easily

I facing some issues trying to design a good solution for this context: there is a complex car entity (many properties and many entities linked) similar to an aggregate root I have to calculate the ...
-2
votes
1answer
123 views

WebService testing using SOAPUI

I am currently working as functional tester. I have been assigned to do web services testing for a project. The test strategy is something like this: our company is switching vendors who provide a ...
-3
votes
1answer
87 views

How to simulate test data to a database?

I've created a service application that import orders from an SQL database. Right now I'm manually entering the data into the database, but in release a 3rd party application will export orders to the ...
-3
votes
1answer
63 views

REST API Testing best strategy

I'm currently developing a personal project using Django REST + React and as it grows more complex, I want to add unit testing to ensure that changes don't affect previous functionality. However, I'm ...
-3
votes
5answers
1k views

How to make a test process for unit testing?

I recently joined a team of developers that has been working on a software project for several years. I have been asked to create a unit testing test process to improve their output and suggest new ...
-4
votes
1answer
97 views

test class that include another class - Only one test or both

i have a sytem a that include system b and return the result. simple!. concrete example an API, one controller that internally call another class then perform the operation. route --> controller ...