Skip to main content

All Questions

-1 votes
1 answer
158 views

Testability when API contract is fixed

Recently, I spoke to an Engineering Manager about some work I've done: I had to implement a micro-service to a third party API contract (that they will call). Part of the requirement is to ...
Ahmed Tawfik's user avatar
-2 votes
2 answers
3k views

Best practices around writing testable extension methods

I’m currently working in C# and I’d like to write and extension method against a type. There is a small amount of repeated logic between classes surrounding JSON deserialization, using the ...
RTT's user avatar
  • 1
1 vote
2 answers
352 views

Can a build system be used effectively as a unit test runner?

The way of running automated tests (specifically, a large number of small, «atomic» unit and regression checks) that I am used to is to maintain a monolithic executable built on top of a test ...
Ignat Insarov's user avatar
3 votes
1 answer
1k views

How to test channel pipelines in Go

I use the "channel pipeline" pattern quite a lot in Go, which looks something like this: // getSomeNums spits out ints onto a channel. Temperatures, pressures, doesn't matter func ...
Tal's user avatar
  • 141
-5 votes
1 answer
104 views

Should code be refactored to be more unit testable or should a framework like PowerMock be used?

Assume there's some code that's already in production that needs some unit testing. Generally speaking, would you want to refactor this code that's already in production by adding things like adding ...
JobHunter69's user avatar
-4 votes
3 answers
141 views

What can an assertion test that running the actual code cannot?

I'm currently learning Jest, Enzyme, Detox and testing in general, but I'm still trying to grasp the benefit of testing. From what I understand, testing is about creating hypothetical situations. Let'...
user avatar
0 votes
3 answers
233 views

Is is worth the time to create a list of manual regression tests for a legacy application?

I am part of a new dev team that is assigned to work on a legacy app. The app currently has no regression or automated unit, integration and system tests. Due to technical debt and convoluted ...
user avatar
2 votes
2 answers
369 views

How to organize my test functions? (Part II: Keepin' it classy)

What are the best practices to organize your unit tests in classes? I see different possibilities: 1) One would be to write one "container" class for each function you want test and then ...
l7ll7's user avatar
  • 263
0 votes
2 answers
298 views

Does reading over code I've written make sense to verify it?

After writing some code, I have a habit of scanning it all over once or twice in order to look for any bugs. This is sometimes a painstaking and tedious process, and it takes up time. After reviewing ...
Inertial Ignorance's user avatar
0 votes
3 answers
413 views

Root Cause Analysis in Microservices Environment

This question is a result of an internal debate involving R&D, DevOps and Automation departments of the company I work for. Here's the nutshell of the debate: automation: We need SSH access to ...
wvxvw's user avatar
  • 124
1 vote
3 answers
152 views

Multiple error debugging

Sometimes I ran into errors which are really hard to debug. So my meta question is the following: You have multiple chunks of code, let's say A -> B -> C -> D Your code don't crash but the ...
Ice-Blaze's user avatar
  • 119
-1 votes
1 answer
62 views

New project development & git guidlines and hints [closed]

We are two senior students and we want to develop an app. Although we dont have experience on using git & github. Our app will consist of a server handling requests with a mongoDB database. The ...
Manos's user avatar
  • 109
3 votes
1 answer
427 views

Functional testing of incomplete features

I've had several tasks where I'm to do functional testing (and to be writing automated test scripts) on features that are not actually complete. For example, CRUD testing on a project to make sure ...
8protons's user avatar
  • 1,379
4 votes
3 answers
221 views

Should the developer provide steps/directions for SQA?

New to the field of QA, I've been asked to do SQA for a project that I'm unfamiliar with and that is close to completion. An example of a specific functional task to be tested looks like the following:...
8protons's user avatar
  • 1,379
24 votes
8 answers
4k views

Wouldn't it be beneficial to write tests during code review?

A colleague of mine came up with an idea that I found interesting. Wouldn't it be beneficial to write tests during code review, by the person doing the review assuming that we don't do TDD? For ...
Sok Pomaranczowy's user avatar

15 30 50 per page