plugins.eclipse.emma-plugin-eclipse.doc.introduction.html Maven / Gradle / Ivy
Show all versions of emma_ant Show documentation
Emma Eclipse plugin user guide 
	
	Introduction
	Emma is a code coverage tool. Code coverage is a technique used to get statistics 
	on how much code in a code base that is exercised at any given execution of that code. 
	This can be extremely useful for example when test cases are run to see how much 
	of the actual code that are actually covered by the tests.
	Emma achieves this by adding specfic code to any compiled Java classes. Once the 
	classes gets executed, Emma is activated and constantly collects data during the 
	execution of the classes. Once the execution completes, the collected data is written
	to file and can be used to build reports.
	One major advantage of Emma compared to other coverage tools is that Emma makes
	no assumptions whatsoever about how the code is executed. It can easily be activated
	to listen to the execution of automated test cases, but it can equally easy be 
	used to measure coverage when some manual execution of a user interface is being done.
	This flexibility gives it a big advantage over other tools, that may have an extensive
	list of demands on how code should be executed for the tool to be able to measure
	the coverage. Emma works as well on the desktop as in deployed environments, such 
	as simple web containers or on full fledged java enterprise servers running Enterprise 
	Java Beans and the full enterprise Java stack.