Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 643 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 643 Bytes

What's this?

An xUnit implementation for Typescript for learning purposes 😇

How does it look

import { assertEquals, assertTrue } from 'assertions';
import { Setup, TearDown, test } from 'test';

export class TestTUnit implements Setup, TearDown {
  setup(): void {
    // setup code ...
  }

  tearDown(): void {
    /// teardown code ...
  }

  @test()
  testIsPassing() {
    assertTrue(true);
  }
  
  @test({name: 'custom test name', skip: true})
  testIsIgnored() {
    assertEquals(true, false);
  }

execution results in terminal