Questions tagged [code-quality]

Code quality is an approximation of how long-term useful and long-term maintainable the code is.

Filter by
Sorted by
Tagged with
35
votes
5answers
7k views

Is there a tool to measure the "maturity" (age) of a code in Git?

The vc-annotate in Emacs is a nice tool to see the "maturity" (age) of each line of code in colors. More blue dark, more mature, more red, less mature. This functionality has already been considered ...
14
votes
5answers
2k views

Will implementing Agile generally improve code quality?

I am writing up a white paper to introduce Agile. As my role is a QA engineer working for a consultancy company. We want customers to hire us to train them in implementing Agile and we DO want our ...
11
votes
3answers
732 views

How do you know if you are writing high quality tests?

Inspired by Exercises on software testing We can learn to write automated tests and we can learn to do tdd and bdd but what tools / resources / guides are available to tell us if the actual tests we ...
10
votes
5answers
178 views

How to handle “fake” unit tests that don’t really test anything?

I’m a part of a large software project which is supposed to use TDD. There are maybe 90 devs across the world. Upon review of tests for software components, I determined that a significant number of ...
6
votes
3answers
234 views

Is it a good idea for a Developer to review a tester's code

Background : Currently working in a firm which follows a practice where the QA's e2e and API automation suites are mandated to be reviewed before being pushed in a CI pipeline. It's a practice that is ...
6
votes
1answer
241 views

End to End Test cases for code merge approval

We have lots of end to end test cases to reduce the manual automation work, and the list keeps growing as we add new features. Now we added this test cases in our development workflow, to ...
5
votes
1answer
90 views

Unit testing - how to decide if (and how) we need to invest more in unit testing?

As a tester, I've been asked to provide some concrete input regarding unit testing - with regards to the overall product and process quality. Our current situation is as follows: Organisation has ...
5
votes
1answer
81 views

What is quality javascript in the new world of es6+

Javascript has changed hugely in the last five years with es6 Now we have choices about whether to use let, const or var We can choose whether to use arrow functions to reduce code verbiage Is ...
4
votes
3answers
1k views

Code Review and part-time team members

We have several part time testers who do both manual testing and test automation. When I receive a pull request from them, I noticed that I am reviewing their code less strictly and allow a minor ...
3
votes
2answers
111 views

How to make the case for code quality in a SAFe environment

SAFe - Scaled Agile Framework for Enterprise. Basically take the agile approach and also have 2 week sprints making up 12 week iterations with planning events once a quarter. Context is a company ...
2
votes
1answer
3k views

SonarQube: Close this "PreparedStatement" in a "finally" clause (dealing with false positives)

Every now and then we come across with some Sonarqube reported issues that seem (at least to us) as false positives. For example when using a Spring JdbcTemplate to execute an update: @Autowired ...
2
votes
2answers
65 views

Metrics that should be included in a software quality report

I am trying to "develop a formula" which will give me a number which will serve as an indicator of whether the overall quality of all tested items on a certain sprint is good enough so that ...
2
votes
2answers
506 views

Creating a common import statement for commonly used imports

import java.util.Properties; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; I have a page object model and each page object requires these ...
2
votes
2answers
163 views

How to improve the code quality mindset?

Having Code Review and Pull Requests (for both application and automation code) is great... but in some cases I am seeing a lot of rubber-stamping approvals leading to low quality code. These share ...
1
vote
1answer
152 views

What are the criteria to convert code smell to a bug

Inspired by this question, which was closed because (and I agree) was not asked correctly and is not answerable. What are the criteria to convert code smell to a bug? Code smell is a hint that ...
1
vote
2answers
42 views

How to plan selenium automation of webapplication when more than 1 person is involved

We are automating a web application, 3 people are involved using different machines and using bit bucket for code integration.how can we split the work and where to start from? As we may need to reuse ...
1
vote
1answer
62 views

No Encapsulation in my project

It's been a long time that I am writing Test Automation scripts in Java, but I never had encapsulation in my code (code hiding). Creating Interface, Abstract Classes or Java beans were never part of ...
1
vote
1answer
893 views

Correlating assignees with authors in SonarQube

I'm aware that assignees are the effective SonarQube uses that I've created on the platform, but authors come from SCM commit data. The question I need to solve comes from the fact that I'm seeing ...
1
vote
0answers
441 views

Jenkins Warnings plugin: excluding messages [closed]

We have installed and enabled Jenkins' Warnings Plugin and, we are using it's Maven parser to detect warnings in the task execution log. This plugin has a set of advanced options that are supposed to ...
1
vote
0answers
43 views

Tracking SonarQube users (asignees) issues evolution

Is it possible to get some kind of a report of the evolution in time of issues (gross number) assigned to each user of the system? I'd like to track my team members and evaluate them based on wherever ...
0
votes
1answer
1k views

Code quality metrics

Looking for some metrics which can be used to determine cost of given code (maybe versus cost of "fixed" code). I've already found some generic ideas like (bugs/cost per line of code), but I'd like ...
0
votes
1answer
26 views

How to write high quality code in javascript without a pair?

I'm a strong advocate of pair and mob programming. When I program alone I still use TDD and BDD to guide my code. However, when I am solo programming, how can I get the feedback and suggestions that ...
0
votes
2answers
47 views

What tools and approaches can be used to improve application code quality?

Teaching and education are clearly essential. At a more practical and technical level, what tools and approaches can I use to improve code quality. For example what tools exist for javascript under ...
-1
votes
1answer
143 views

What to set as measurable goals and performance criteria for a brand new website build/development?

We have given a task to a third party company to develop a website from scratch for us. What kind of measurable goals can be put in place in order to get quality assurance from the development. ...