
require( 'wTesting' );
const _ = require( 'wTools' );
_.include( 'wProcess' );
let c = 0;

//

_.process.on( 'exit', () =>
{
  debugger;
  c++;
  console.log( 'onExit :', c );
})

//

function onSuiteEnd()
{
  debugger;
  c++;
  console.log( 'onSuiteEnd :', c );
  return _.time.out( 1000 );
}

//

function routine1( test )
{
  test.identical( 1, 1 );
  return _.time.out( 200 );
}

//

function routine2( test )
{
  process.exit( 0 );
  return _.time.out( 10000 );
}

//

var Self1 =
{
  name : 'manualTermination',
  onSuiteEnd,
  tests :
  {
    routine1,
    routine2,
  }
}

//

Self1 = wTestSuite( Self1 );
if( typeof module !== 'undefined' && !module.parent )
wTester.test( Self1.name );

@@ -17,16 +17,19 @@
 ing' );%0A
+// 
 const _ 
@@ -51,16 +51,52 @@
 ols' );%0A
+const _ = _globals_.testing.wTools;%0A
 _.includ

Improve asset `manualTerminationAsync`, use valid global instance of `wTools`