software-quality

Comparison of static code analysis tools in Linux? [closed]

风格不统一 提交于 2020-01-22 17:26:21
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Has anyone done any comparisons on static code analysis tools available to Linux? What are the strengths and weaknesses of the following tools: Lintian, Sparse, Splint, RATS, Using the -Wall option. Would you consider that using just one of these tools is adequate? I'm not looking for recommendations (I can find

How to bring coordination between file system and database?

寵の児 提交于 2020-01-10 19:17:11
问题 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 system and database while we are uploading a file and also in case of deleting a file. First we create a reference in the database or store files on file system. The problem is that if I create a reference in the database first and then store a file on file system, but while storing files on the file

Does Unit Tests still matter if Functional Tests is satisfied?

偶尔善良 提交于 2019-12-25 16:44:04
问题 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 Tests are already satisfied, do we still need to do Unit Tests? Most likely (let's use web development as context), this is common by using the browser to see if things are right by letting other users/people try the system/application. Let us put out other tests like for edge cases. 回答1: Are there any

How to measure robustness?

二次信任 提交于 2019-12-22 05:27:18
问题 I am working on a thesis about meassuring quality of a product. The product in this case is a website. I have identified several quality attributes and meassurement techniques. One quality attribute is "Robustness". I want to meassure that somehow, but I can't find any useful information how to do this in an objective manner. Is there any static or dynamic metric that could meassure robustness? Ie, like unit test coverage, is there a way to meassure robustness like that? If so, is there any

Making all plugin specific rules strict

你说的曾经没有我的故事 提交于 2019-12-14 04:10:55
问题 In eslint.json configuration, ESLint allows to configure rule strictness using the following logic: 0 - "off" 1 - "warning" 2 - "error" Example: { "rules": { "jasmine/valid-expect": 2, "eqeqeq": [2, "smart"] } } Question: Is it possible to make all plugin-specific rules strict (code 2)? In this case, we want all rules coming from jasmine (eslint-plugin-jasmine plugin) produce an error if there is a violation. I've tried to specify "jasmine/*": 2 and "jasmine": 2 , but both failed with a

How to simulate 120 concurrent users of a web application with real conditions?

你。 提交于 2019-12-10 04:31:21
问题 How to you simulate > 120 concurrent users using a Load Test Framework such as JMeter? Real concurrency, as far as I understand, would be possible if I would use 120 servers or 120 CPU cores. How did/do you test your web application or service with real conditions? 回答1: I have found JMeter to work fine, but I generally use is across 4-5 PC's to get the most accurate results. Although you may believe 120 concurrent users may be difficult to simulate from a single PC, you have to realise that

Open source projects with great Java/C# code - any suggestions? [closed]

*爱你&永不变心* 提交于 2019-12-09 20:37:04
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Does anyone have any suggestions of large open source projects with high quality code that would be good to study. 回答1: Scott Hanselman has been reviewing applications and their respective source code in a series "The Weekly Source Code". Pretty in depth and diverse stuff. 回答2: SharpDevelop 回答3: Community Server

SonarQube - how is it used

孤者浪人 提交于 2019-12-06 00:11:13
问题 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 centralized, server deployment, or on each developer machine? All tutorials show installations on separate machines and being used in the localhost, while there is a public instance example, and the requirements and specs certainly look service-like. On the other hand, I'm not getting how do the

FindBugs - “may fail to close stream” when using ObjectOutputStream

我与影子孤独终老i 提交于 2019-12-05 22:51:26
问题 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 = null; try { out = new ByteArrayOutputStream(); try { s = new ObjectOutputStream(out); s.writeObject(tokens); } finally { try { s.close(); } catch (Exception e) { throw new CSBRuntimeException(e); } } } catch (Exception e) { throw new CSBRuntimeException(e); } finally { IOUtils.closeQuietly(out); } return

How to measure robustness?

和自甴很熟 提交于 2019-12-05 09:05:48
I am working on a thesis about meassuring quality of a product. The product in this case is a website. I have identified several quality attributes and meassurement techniques. One quality attribute is "Robustness". I want to meassure that somehow, but I can't find any useful information how to do this in an objective manner. Is there any static or dynamic metric that could meassure robustness? Ie, like unit test coverage, is there a way to meassure robustness like that? If so, is there any (free) tool that can do such a thing? Does anyone have any experience with such tooling? Last but not