Helps you write better TypeScript programs
tstest is a mature full-featured TypeScript testing tool that helps you write better programs.
The tstest framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries.
NOTICE: All the features listed below, is NOT YET IMPLENMENTED.
TO DO:
- Detailed info on failing assert statements (no need to remember self.assert* names);
- Auto-discovery of test modules and functions;
- Modular fixtures for managing small or parametrized long-lived test resources;
- Can run unittest (including trial) and nose test suites out of the box;
- JavaScript, TypeScript, Google Apps Script (untested);
- Rich plugin architecture, with over n+ external plugins and thriving community;
- Out-of-the-Box Dual Browser/Node.js environment testing support;
This module is highly inspired by pytest
test
for containerization testingssinon
for mocking everything you needAssertEqual
for check TypeScript typingstestSchedulerRunner
for RxJS marble testing
- Testing Python Applications with Pytest
- Typescript Dependency Injection and Decorators
- Decorators with TypeScript
- TypeScript > Decorators #2249
- error TS1206: Decorators are not valid here? #3661
- TypeScript-Handbook > Decorators
- Prototype for a Metadata Reflection API for ECMAScript
- Function Expression Decorators (ECMA-262 Proposal)
- Javascript Decorators
- TypeScript > Using the Compiler API
- TypeScript Compiler Internals · TypeScript Deep Dive
- TypeScript Compiler API wrapper for static analysis and code manipulation
- add
testScheduleRunner
helper function totstest
module for testing RxJS marble diagrams. - upgrade tap to v16. (fix tapjs/node-tap#791).
Release v1.0 of tstest
- Upgrade to tap to replace blue-tape (wechayt/wechaty#2223)
- Remove
sinon-test
- Enable ES Modules
- Add
AssertEqual
for typing tests
- Publish as a testing toolset wrapper for convenience:
blue-tap
sinon
@types/blue-tap
@types/sinon
- Received the NPM package name: tstest from David Auffret.
- Scratched a tstest logo.
- Linked to pytest.
Thanks to David Auffret who owned the tstest
name of NPM module. He is so kind and nice that passed this name over to me with the help of support from NPM after my request.
$ npm deprecate tstest@0.0 'tstest had been republished as a test framework from v0.1'
...
Huan LI (李卓桓), Microsoft Regional Director, zixia@zixia.net
- Code & Docs © 2019 Huan LI zixia@zixia.net
- Code released under the Apache-2.0 License
- Docs released under Creative Commons