software-quality Questions

6

I'm kind of a rookie with python unit testing, and particularly coverage.py. Is it desirable to have coverage reports include the coverage of your actual test files? Here's a screenshot of my HTML...
Heretical asked 27/10, 2009 at 6:8

5

Solved

How do I exclude entire files from coverage.py reports? According to the documentation you can exclude code by matching lines. I want to exclude entire files, so that the reports don't include 3rd...
Lindeberg asked 13/10, 2009 at 10:38

6

Solved

There has been a considerable amout of discussion about code metrics (e.g.: What is the fascination with code metrics?). I (as a software developer) am really interested in those metrics beca...
Vulvitis asked 3/12, 2009 at 7:46

1

Solved

I am trying to make my code easier to extend in terms that a little change will not affect much other code. I have an enum MyEnum, which values might increase in future. Then, there are classes tha...
Delorasdelorenzo asked 5/12, 2021 at 21:31

2

Solved

The Jenkins Warnings Next Generation Plugin's documentation for pipelines specifies three step variants: publishIssues: Publish issues created by a static analysis scan recordIssues: Record compi...

2

Solved

Currently there are two concepts how to connect a React component to the redux store: connect() and Redux Hooks. I was wondering whether using hooks is considered good software design. It harms t...
Dominik asked 23/1, 2020 at 12:9

1

In Python, many methods define argument variables with "standardized" names, like: def __exit__(self, type, value, traceback): In the line above, variable type causes pylint to warn (W0622) that...
Northerly asked 9/5, 2019 at 9:39

14

Solved

This certainly presupposes that unit testing is a good thing. Our projects have some level of unit testing, but it's inconsistent at best. What are the most convincing ways that you have used or h...
Iridectomy asked 23/9, 2008 at 11:37

1

Solved

I currently use the Managed Binary Analysis and it looks like the nuget adds the same rules (maybe less). I also use this SonarQube plugin: https://github.com/SonarQubeCommunity/sonar-fxcop. What...
Loquacity asked 18/4, 2017 at 13:1

2

Solved

I'm using codacy to monitor code quality, but it would be nice to see what codacy will catch before a push. I see that it uses eslint and several other tools to decide what to catch. Is there a way...
Patrizia asked 18/2, 2016 at 19:49

1

Solved

I've already read about each Spring annotation in What's the difference between @Component, @Repository & @Service annotations in Spring? I know that @Component and @Service do almos...
Everyman asked 18/1, 2018 at 18:53

4

Solved

Coming from a PHP world where there's only one way to write exceptions handling.. I found the wrapping of exceptions in Java a bit "ugly": public void exampleOneException(String input) throws MyBu...
Autosuggestion asked 16/11, 2017 at 8:51

1

For a short summary: Unit tests are the smaller ones that expects something to do it right in dev's view. Functional tests are those that expects things are right in user's view If Functional T...

6

Solved

In accordance with the Java specification, The Java compiler verifies automatically that all checked exceptions are caught, based on "throw" statements and method signatures, and ignores unchecked ...
Acker asked 10/11, 2016 at 12:23

1

We are using SonarQube 5.5 (latest to date). Our project contains a lot of legacy code that wouldn't pass our desired Quality Gate, so we decided to ignore technical debt which is already there, b...

4

Solved

I get asked this question very frequently in my interviews. They draw username and password text fields and ask me what test cases I can come up with to ensure that this page works fine. My answers...
Monomial asked 23/1, 2011 at 9:45

4

I am working on a online file management project. We are storing references on the database (sql server) and files data on the on file system. We are facing a problem of coordination between file...
Hasin asked 26/3, 2010 at 16:28

2

Solved

I have a simple problem, with a simple answer probably, but I can't find what is it. We want to deploy SonarQube along with Checkstyle and some other tools, but we can't find out is it meant for a ...
Handcrafted asked 15/11, 2013 at 15:57

2

Solved

I started a Dart project and now I need some functionality that is not available in the Dart API Reference. I was advised to use a package from pub.dartlang.org and now I am browsing through the pu...
Psephology asked 14/1, 2014 at 19:0

5

Solved

A friend was telling me the other day that there is a pyramid for the costs of fixing a problem in the software development life cycle. Where could I find this? He was referring to the cost o...
Headroom asked 9/11, 2010 at 2:47

7

I was wondering if anyone has experience in metrics used to measure software quality. I know there are code complexity metrics but I'm wondering if there is a specific way to measure how well...
Saintly asked 29/6, 2009 at 21:5

2

Solved

I have this piece of code, which is to write an Ojbect to a byte array stream: static byte[] toBytes(MyTokens tokens) throws IOException { ByteArrayOutputStream out = null; ObjectOutput s = nul...
Fixture asked 21/1, 2013 at 7:46

3

Solved

Firstly, I will say that I come from the Java world (this is important, really). I have been coding PHP for a while, one of the problems that I have encountered is that due to the lack of compilat...
Scissel asked 23/11, 2012 at 3:14

22

Its always said that more you program, the better you become. Sounds good and true. But I was wondering if there is a proven route to becoming a better programmer. Something like: Learn a ...
Chubb asked 9/10, 2009 at 21:30

3

Solved

do you know a good screen recording software, to assist the quality management process? I think, that the following features will be important: easy to use. auto capturing the last 5 or 10 ...
Subjunction asked 5/10, 2010 at 8:50

© 2022 - 2024 — McMap. All rights reserved.