describe('asserter', function() {

  var hasFailed = (test) => !test.result;

  var loadTests = function(module) {
    var asserter = require('../asserter');
    // Suppress output.
    asserter.output = () => {};

    var testSuite = require(module);

    beforeEach(function() {
      testSuite.run('BEGIN');
    });

    afterAll(function() {
      testSuite.run('END');
    });

    it('should pass default tests', function() {
      // Inspect default tests.
      expect(testSuite.tests.every(hasFailed)).toBe(false);
    });

    it('should clean tests after run', function() {
      testSuite.run();
      expect(testSuite.tests.length).toBe(0);
    });

    it('should fail test', function() {
      // Force an error.
      asserter.test('Equals').equals(1, 2);
      expect(asserter.tests.some(hasFailed)).toBe(true);
    });
  }

  describe('suite1', loadTests.bind(this, './test'));
  //describe('suite2', loadTests.bind(this, './test.alt'));

});

@@ -81,21 +81,21 @@
 var load
-Tests
+Suite
  = funct
@@ -128,35 +128,74 @@
 rter
- = require('../asserter'
+;%0A%0A    beforeAll(function() %7B%0A      asserter = require(module
 );%0A
+  
     
@@ -214,16 +214,18 @@
 output.%0A
+  
     asse
@@ -251,105 +251,8 @@
  %7B%7D;
-%0A%0A    var testSuite = require(module);%0A%0A    beforeEach(function() %7B%0A      testSuite.run('BEGIN');
 %0A   
@@ -293,27 +293,21 @@
     
-testSui
+asser
 te
+r
 .run(
-'END'
 );%0A 
@@ -404,33 +404,32 @@
      expect(
-testSui
+asser
 te
+r
 .tests.every
@@ -482,29 +482,17 @@
 uld 
-clean tests after run
+fail test
 ', f
@@ -513,22 +513,68 @@
     
-testSuite.run(
+// Force an error.%0A      asserter.test('Equals').equals(1, 2
 );%0A 
@@ -589,38 +589,49 @@
 ect(
-testSui
+asser
 te
+r
 .tests.
-length
+some(hasFailed)
 ).toBe(
-0
+true
 );%0A 
@@ -649,33 +649,45 @@
  it('should 
-fail test
+clean tests after run
 ', function(
@@ -700,68 +700,21 @@
     
-// Force an error.%0A      asserter.test('Equals').equals(1, 2
+asserter.run(
 );%0A 
@@ -744,34 +744,22 @@
 sts.
-some(hasFailed)
+length
 ).toBe(
-true
+0
 );%0A 
@@ -791,29 +791,29 @@
 uite1', load
-Tests
+Suite
 .bind(this, 
@@ -826,18 +826,16 @@
 t'));%0A  
-//
 describe
@@ -853,13 +853,13 @@
 load
-Tests
+Suite
 .bin

Allow multiple test suites in the same spec