发明名称 METHOD AND SYSTEM FOR DETERMINING FUNCTIONAL TESTS TO EXECUTE BASED ON CODE COVERAGE
摘要 Techniques are disclosed for automatically determining tests to run on source code based on code coverage. In one embodiment, an extensible system takes as input a configuration file having pointers to an IP address of a server where tests are being run and a type of code coverage instrumentation. An agent configured to instrument source code and collect code coverage information is copied to the server at the IP address. During a training phase, the agent intercepts tests being run on source code and provides a dump of the interception results after each test is executed. Using such results, mappings of the tests to the source code is created and stored. During an execution phase, when new or modified source code file is being checked in, a testing application retrieves for execution tests which map to the source code file and to code dependent on the source code file.
申请公布号 US2016259713(A1) 申请公布日期 2016.09.08
申请号 US201514638442 申请日期 2015.03.04
申请人 VMware, Inc. 发明人 BELUR Rekha
分类号 G06F11/36 主分类号 G06F11/36
代理机构 代理人
主权项 1. A method for testing source code, comprising: intercepting tests run on a first version of source code to determine the tests being run and code coverage from running the tests; storing mappings of the determined tests to the first version of the source code and the determined code coverage in a database; upon a second version of the source code being checked in, determining a set of tests to run on the second version of the source code and code that is dependent on the second version of the source code based on stored mappings and code coverage information in the database; and running the determined set of tests on the second version of the source code and the dependent code.
地址 Palo Alto CA US