发明名称 Asynchronous code testing in integrated development environment (IDE)
摘要 A system and associated method for asynchronous code testing in an Integrated Development Environment (IDE). The IDE has components of a source code editor, an impact analyzer, a test case launcher, a graphical user interface (GUI), and a database. All components run concurrently for asynchronous and real-time code editing. Upon modification of a code block of an input code, a test case is automatically generated and a launching priority is calculated based on the relationship between the modified code block and each code block affected by the modification. Generated test cases are automatically run by the test case launcher or manually selected by the user to produce a test run result.
申请公布号 US8826239(B2) 申请公布日期 2014.09.02
申请号 US201012899043 申请日期 2010.10.06
申请人 International Business Machines Corporation 发明人 Sawano Yoshiaki
分类号 G06F11/36 主分类号 G06F11/36
代理机构 Schmeiser, Olsen & Watts, LLP 代理人 Schmeiser, Olsen & Watts, LLP ;Pivnichny John
主权项 1. A method for asynchronous code testing in an Integrated Development Environment (IDE), said method comprising: creating, by a processor of a computer system that hosts the IDE, an input code based on inputs provided by a user; said processor storing the input code in a database coupled to the computer system, said input code comprising a plurality of code blocks organized in a hierarchy of nesting levels characterized by respective nesting level numbers that increase with increasing separation of each respective nesting level from a reference level of the total input code; said processor receiving, from the user, a modification of at least one code block of the plurality of code blocks of the input code; said processor generating at least one modified code block respectively corresponding to the received modification; said processor generating a test case list of test cases from the input code by use of an impact analyzer comprised by the IDE, wherein each test case of the test case list comprises a respective test case identifier and a respective launching priority, wherein the respective launching priority quantifies how strongly each test case is associated with the at least one modified code block, wherein each test case is uniquely identified by the respective test case identifier, and wherein said generating the test case list comprises generating the test cases and determining the respective launching priority for each test case by (i) determining an association strength of each modified code block as measured by the nesting level in the hierarchy of each modified code block such that the association strength decreases as the nesting level increases for each modified code block and (ii) computing the launching priority as a sum of the association strengths of the modified code blocks; said processor producing a test run result for the at least one modified code block by asynchronously running the test cases of the test case list in a sequential order of increasing launching priority of the test cases; and said processor displaying the test run result to the user via a graphical user interface (GUI) of the computer system.
地址 Armonk NY US