Automatic regression testing based on cyclomatic complexity
Abstract
A processor-implemented method, system, and/or computer program product automates regression testing based on cyclomatic complexity of changed code. A base code change to a software program is identified as having a particular cyclomatic complexity. Multiple different software test routines are mapped to the base code change. A specific quantity of the different software test routines are then run to test the base code change, where the quantity of test routines that is run is based on the cyclomatic complexity of the base code change.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A processor-implemented method of automating regression testing, the processor-implemented method comprising: identifying, by a processor, a base code change in a software program; receiving, by the processor, a string of binary data that represents a cyclomatic complexity of the base code change, wherein the cyclomatic complexity of the base code change is defined by a formula: M=E−N+P where E=a quantity number of edges in a graph of the base code change, N=a quantity of nodes in the graph of the base code change, and P=a quantity of exit nodes depicted in the graph of the base code change; m
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (13)
Non-Patent Literature (2)
- B. Smedburg et al., "Tinderbox", Aug. 21, 2012, pp. 1-3, https://developer.mozilla.org/en-US/docs/Tinderbox.
- Dustin, "About Buildbot", Sep. 19, 2011, p. 1, http://trac.buildbot.net/wiki/AboutBuildBot.