Jump to content

User:SinKieneCoder/sandbox

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by SinKieneCoder (talk | contribs) at 07:18, 15 March 2023 (copy editing). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Code integrity is a measurement used in software shipping. It measures how high the source code's quality is when it is passed on to the QA, and is affected by how extensively (or thoroughly GZ) the code was processed by correctness-checking processes. Examples for such correctness-checking processes can be unit testing and integration testing, code review, test automation, AI-based code analysis etc. Code integrity is the combination of applying code correctness processes (software quality) along with metrics that measure the completeness of these correctness-checking processes, such as, for example, code coverage. While code integrity is usually achieved by unit testing the source code to reach high code coverage, it is definitely not the only way, or the best way, to achieve code integrity. In fact, code coverage, a popular metric to measure the thoroughness of unit tests, is known to have a limited correlation with the measure of real code integrity.

Developer's confidence

With code integrity, the developer can be sure that his/her code is written correctly when passed on to QA. Code integrity is not just about the correctness of the code, but also about developers’ confidence regarding correctness of their code. This is, in fact, the expected quality level of the code. Code integrity helps companies release better products, with fewer bugs, in a shorter time.

Companies who practice code integrity avoid the classic scenario where the development stage is delayed, delaying the QA stage, delaying the release stage. The product is released with more bugs (due to time pressure), users report tons of bugs back to the development team, and they start working on version 1.1 shortly after releasing version 1.0, just to fix bugs that could have been avoided.

The QA department cannot measure the code's integrity even after all their tests are run. The only way to measure code integrity, and be sure of your code, is by unit testing your code, and reaching high code coverage.

Improve code integrity by:

  • Unit testing of the code
  • Integration testing
  • Assigning a code integrity manager

Advantages of working with code

  • Shorter development time - bugs that are found during the development stage are fixed faster and easier than bugs found in later stages.
  • Lower development costs – It's cheaper to fix bugs that are found during the development stage than in later stages.
  • Confidence in your code's quality – Releasing products with high code integrity means more positive feedback from your customers.
  • Makes the QA's work much more efficient – The QA concentrates on testing the system, without worrying about bugs that could have been easily found through proper unit testing.

Measuring code integrity:

To measuring code integrity, use the following formula:1 − (Non-covered bugs) / (Total bugs)

In words:, the 100% code integrity minus the number of bugs that weren’t covered by unit testing, divided by the total bugs found during the entire product cycle., including development, is the code not in integrity.


References

Category:Software testing