Progressive, interactive TypeScript framework for unit testing using decorators.
- Support of assertion libraries (like Chai)
- Support of async functions
- Resources usage
- Console interception
- Hot Reloading
- Interactive 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);
}
}
npm install usentry --save-dev
npm install usentry-cli -g
For now there are 4 decorators available
@Section(title, moduleTitle)
@DescribeTest(name)
@Parameterized(...values)
@Repeated(times)