Intelligent test plan generation and execution
AssigneeSap SE
InventorFlorian Geckeler
Life of this patent
Estimating the term…
Abstract
Example methods and systems are directed to automatically generating and executing intelligent test plans. When a file containing source code for an application is changed, an intelligent test plan is generated that selects a subset of the available tests for the application. A dependency graph may be generated that shows which other files depend on the modified file, directly or indirectly. By running the tests for the modified file and all files that depend on the modified file, without running all tests for the application, errors introduced by the changes to the modified file can be detected while reducing the time taken to run tests.
Claims20
A system comprising:
- a memory that stores instructions;
- and
- one or more processors coupled to the memory and configured to execute the instructions to perform operations comprising:
- determining one or more changed files for a software project;
- generating a dependency graph that identifies a set of files that depend on the one or more changed files for the software project;
- based on the dependency graph, identifying a set of tests to be run, the set of tests comprising tests for the set of files and excluding at least one test for the software project;
- based on the set of tests to be run, generating a test plan in a first file format;
- converting the test plan from the first file format to a second file format of a test execution system;
- and
- running the set of tests by the test execution system based on the converted test plan to generate test results.
A non-transitory computer-readable medium that stores instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising:
- determining one or more changed files for a software project;
- generating a dependency graph that identifies a set of files that depend on the one or more changed files for the software project;
- based on the dependency graph, identifying a set of tests to be run, the set of tests comprising tests for the set of files and excluding at least one test for the software project;
- and
- running the set of tests to generate test results.
A method comprising:
- determining, by one or more processors, one or more changed files for a software project;
- generating a dependency graph that identifies a set of files that depend on the one or more changed files for the software project;
- based on the dependency graph, identifying a set of tests to be run, the set of tests comprising tests for the set of files and excluding at least one test for the software project;
- and
- running the set of tests to generate test results.
Dependencies are inferred from the claim text.