Skip to content
/ usentry Public

Progressive TypeScript famework for unit testing

License

Notifications You must be signed in to change notification settings

DanTsk/usentry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)