Questions tagged [code-quality]
Code quality is an approximation of how long-term useful and long-term maintainable the code is.
24
questions
1
vote
2
answers
47
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 ...
2
votes
2
answers
73
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 ...
5
votes
1
answer
106
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 ...
0
votes
1
answer
28
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
2
answers
54
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 ...
36
votes
5
answers
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 ...
2
votes
2
answers
746
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 ...
1
vote
1
answer
63
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 ...
0
votes
1
answer
2k
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 ...
10
votes
5
answers
201
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 ...
3
votes
2
answers
115
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
2
answers
167
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 ...
6
votes
3
answers
235
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
1
answer
294
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 ...
-1
votes
1
answer
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. ...
1
vote
0
answers
460
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 ...
2
votes
1
answer
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
...
1
vote
1
answer
927
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
0
answers
46
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 ...
5
votes
3
answers
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 ...
5
votes
1
answer
84
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 ...
2
votes
1
answer
159
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 ...
14
votes
4
answers
756
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 ...
14
votes
5
answers
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 ...