0.3.0 • Published 6 years ago

usentry-cli v0.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

USentry

Progressive, interactive TypeScript framework for unit testing using decorators.

Features:

  • Support of assertion libraries (like Chai)
  • Support of async functions
  • Resources usage
  • Console interception
  • Hot Reloading
  • Interactive Dashboard

Preview

Dashboard

import { Section, DescribeTest, Parameterized } from 'usentry'
import { expect } from 'chai'

@Section('String')
export class StringTest{

    @DescribeTest('2 strings should be equals')
    @Parameterized(["1","1"], ["3","3"])
    equality(str1: string, str2: string){
        expect(str1).to.be.equals(str2);
    }
}

Getting Started

npm install usentry --save-dev
npm install usentry-cli -g

Docs

For now there are 4 decorators available

@Section(title, moduleTitle)
@DescribeTest(name)
@Parameterized(...values)
@Repeated(times)