Patent ID: 9727436
Date: 2017-08-08
CPC Classifications: G06F

Claim:
1. A system for performing unit testing comprising: a virtual machine configured to execute software units, wherein said virtual machine is a JAVA VIRTUAL MACHINE: a unit testing framework comprising at least one assert relating to memory and performance of runtime data areas of the virtual machine, the unit testing framework configured to test the software units executing within the virtual machine using the at least one assert, wherein said unit testing framework is JUNIT: a data store; a JAVA interface class located outside the virtual machine and comprising a set of methods relating to memory and performance of the runtime data areas, wherein said set of methods comprises a get heap method, a get invocation count method, a get size of object method, a get current thread time method, and a get data model method; a profiling agent placed within the virtual machine configured to: access runtime data areas of the virtual machine; expose memory and performance information from runtime data areas of the virtual machine to the unit testing framework, wherein said unit testing framework is able to execute said set of methods relating to memory and performance of the runtime data areas, wherein said set of methods interact with the profiling agent; and capture, and store in said data store, memory and performance data for different test runs associated with one of the software units, wherein the different runs correspond to different versions of the associated software unit, wherein said agent is written in C++, and wherein a JAVA NATIVE INTERFACE (JNI) is used to exchange data between the JAVA interface class and the profiling agent: a comparison engine configured to be executed by a computer processor, wherein the comparison engine is configured to: retrieve from said data store two or more test runs each comprising memory and performance data corresponding to a version of the associated software unit; and compare the memory and performance data from the two or more test runs; an ECLIPSE MODEL FRAMEWORK (EMF) data model configured to represent data collected by the profiling agent for at least one of the different test runs and configured to represent a delta model that supports comparing data collected across at least two of the different test runs; and a reporting engine configured to be executed by a computer processor, wherein the reporting engine is configured to report the comparison from the comparison engine.