@@ -191,6 +191,40 @@ chain.add('coverage', function() {
191191 } ) ;
192192} ) ;
193193
194+ chain . add ( 'coverage-multiple' , function ( ) {
195+ tr . options . coverage = true ;
196+ tr . run ( {
197+ code : fixtures + '/coverage-multiple-code.js' ,
198+ tests : fixtures + '/coverage-test.js' ,
199+ coverage : {
200+ files : [
201+ fixtures + '/coverage-multiple-code.js' ,
202+ fixtures + '/coverage-code.js'
203+ ] ,
204+ } ,
205+ } , function ( err , res ) {
206+ var stat = {
207+ files : 1 ,
208+ tests : 2 ,
209+ assertions : 3 ,
210+ failed : 0 ,
211+ passed : 3 ,
212+ coverage : {
213+ files : 1 ,
214+ statements : { covered : 7 , total : 8 } ,
215+ branches : { covered : 0 , total : 0 } ,
216+ functions : { covered : 3 , total : 4 } ,
217+ lines : { covered : 7 , total : 8 }
218+ }
219+ } ;
220+ delete res . runtime ;
221+ a . equal ( err , null , 'no errors' ) ;
222+ a . deepEqual ( stat , res , 'coverage multiple code testing works' ) ;
223+ tr . options . coverage = false ;
224+ chain . next ( ) ;
225+ } ) ;
226+ } ) ;
227+
194228if ( generators . support ) {
195229 chain . add ( 'generators' , function ( ) {
196230 tr . run ( {
0 commit comments