Changes

Jump to navigation Jump to search
490 bytes added ,  16:29, 6 November 2014
no edit summary
==%unit:before==
 
{{Mark|Updated with Version 8.0}}: filter argument added.
 
{| width='100%'
|-
| width='120' | '''Syntax'''
|{{Code|%unit:before}}<br/>{{Code|%unit:before("function")}}
|-
| '''Summary'''
|A function decorated with this annotation will be evaluated '''before each''' unit test. If a function name is specified as argument, it will only be evaluated before that function.
|}
==%unit:after==
 
{{Mark|Updated with Version 8.0}}: filter argument added.
 
{| width='100%'
|-
| width='120' | '''Syntax'''
|{{Code|%unit:after}}<br/>{{Code|%unit:after("function")}}
|-
| '''Summary'''
|A function decorated with this annotation will be evaluated '''after each''' unit test. If a function name is specified as argument, it will only be evaluated before that function.
|}
* Updated: the info argument of functions can now be an arbitrary item.
* Updated: infos are now represented in an <code>info</code> child element.
* Updated: [[#unit:before|unit:before]] and [[#unit:after|unit:after]] can be extended by a filter argument.
;Version 7.9
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu