Software quality reflects how well a software conforms to given requirements (functional and non-functional), how much it shows characteristics like reliability, efficiency, security, maintainability.
Questions tagged [software-quality]
233 questions
0
votes
2 answers
Why If statement is not working with for loop in selenium
I have a menu in the application when you click on any menu item it gives you a list which looks like this:
0
votes
1 answer
Conflict between code quality check and implicit next() in Express error handling
I am starting with NodeJS. In error handling, the following code declares the next callback and does not use it:
app.get('/user/:id', async function (req, res, next) {
var user = await getUserById(req.params.id)
res.send(user)
})
because…

miguelmorin
- 5,025
- 4
- 29
- 64
0
votes
0 answers
Sonarqube didn't detect common bugs in PHP
I just tried scanning one of my Laravel based project using sonarqube cloud. But it didn't detect missing semicolans as an issue? Here is the code I tried.

Randika
- 683
- 3
- 11
- 32
0
votes
1 answer
Which is better approach? one request or two requests
I have a table that returns JSON like this:
{
"status": 200,
"body": [
{
"category": "Sports",
"items": [
{
"id": 1,
"name": "Football"
},
{
…

mustafa
- 3
- 3
0
votes
0 answers
How to find the average percentage of faults detected (APFD) for test cases in open source projects?
I'm practicing test case prioritization techniques. To get real results, I need some metrics for test cases such as the average percentage of faults detected (APFD), APFD per cost, and so on. To to find these data for open source projects?
Note that…

Pedro
- 61
- 1
- 1
- 4
0
votes
0 answers
Directly return value vs Return variable with the expected value
I found many answers about using a unique return for each function, but my question is quite tricky for me.
I really need to know if there is some reason to return a variable with the expected result or if i can just return the value, as shown…

Mateus Martins
- 442
- 3
- 16
0
votes
2 answers
Refactoring a big function into functions within the function?
I have two functions that are not so big, and not so complex (maybe because I wrote them they don't seem so at the moment) and I have tried refactoring them (successfully), however, would that be considered overdoing it:
Original…

Darkbound
- 3,026
- 7
- 34
- 72
0
votes
0 answers
Is it a standard practice to have a single application/controller writing to database
I've been interviewed by some experienced engineer, when he strongly disagreed with some statements I said:
Assuming full control over your applications, It's a standard practice to make writes-to-database exclusive to one single application or…

Samha'
- 369
- 2
- 7
0
votes
0 answers
I am trying to learn statement coverage analysis
I am trying to learn code coverage analysis; I am bit confused because the following code has loops.
Example if the code like this
read a;
read b;
i=0
if a>b
while(to i

Rashmika gamage
- 37
- 7
0
votes
2 answers
How to get the length of a identifier/method in C#?
I'm trying to get the length of all the identifiers and methods of a project made in ASP.NET Core 2.2, in order to analize the code metrics for a homework, but I haven't found any kind of tool that provides that metric.
By far I've used Code Metrics…

Sebastián Arribasplata
- 41
- 1
- 11
0
votes
1 answer
IntelliJ IDEA debug configuration: bash scripting to limit cpu/bandwidth
I need to limit the CPU and bandwidth of my application for testing purposes during the development process and wrote a small bash script wrapper around the java command, but I'm not sure how I can integrate this approach with IDEA's run/debug…

Jacob Jennings
- 2,796
- 1
- 24
- 26
0
votes
0 answers
Is there an alternative way to enforce model validation?
In order to 1. clarify possibilities on an interface and hence 2. reduce test cases plus 3. fail as fast as possible I intend to enforce validation of a model upon creation. The model shall not be created if the constellation is not valid. As a…

David C.
- 48
- 5
0
votes
2 answers
How to unittest specific implementation
I am reading a lot about (unit)testing and I try to implement as much as possible in my day-to-day workflow, but somehow I have the feeling I am doing something wrong.
Let's say I have a function which takes a path and based on some elements of this…

Enzo
- 81
- 7
0
votes
1 answer
How to configure sonarqube to send blocker and crtical issue notification
I have a requirement that after every scan send only sonar blocker and critical violations issues to particular users .
Seeking help to understand the required configuration.
Sonar version is:1.2.1

MiniSu
- 566
- 1
- 6
- 22
0
votes
0 answers
How do I fix Fortify static scan issue related to Open Redirect in Spring MVC controller?
I have an application that has a help page with a horizontal menu on top of it.
Once the user clicks on the Help link within the menu the following controller gets invoked and the user is taken to a page that is NOT within my current application but…

Nital
- 5,784
- 26
- 103
- 195