tstest
v1.2.8
Published
Testing Utilities for Helping You to Write Better TypeScript Programs
Downloads
1,381
Readme
TSTEST
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.
Features
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
API
test
for containerization testingssinon
for mocking everything you needAssertEqual
for check TypeScript typingstestSchedulerRunner
for RxJS marble testing
SEE ALSO
- Testing Python Applications with Pytest
- Typescript Dependency Injection and Decorators
- Decorators with TypeScript
Decorators
- 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
AST
Online Tools
Articles & Projects
- TypeScript > Using the Compiler API
- TypeScript Compiler Internals · TypeScript Deep Dive
- TypeScript Compiler API wrapper for static analysis and code manipulation
Other Tools
CHANGELOG
main v1.2 (Mar 6, 2022)
- add
testScheduleRunner
helper function totstest
module for testing RxJS marble diagrams. - upgrade tap to v16. (fix tapjs/node-tap#791).
v1.0 (Oct 24, 2021)
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
v0.4 June 07, 2019
- Publish as a testing toolset wrapper for convenience:
blue-tap
sinon
@types/blue-tap
@types/sinon
v0.1 March 21, 2018
- Received the NPM package name: tstest from David Auffret.
- Scratched a tstest logo.
- Linked to pytest.
THANKS
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 [email protected] 'tstest had been republished as a test framework from v0.1'
...
AUTHOR
Huan LI (李卓桓), Microsoft Regional Director, [email protected]
COPYRIGHT & LICENSE
- Code & Docs © 2019 Huan LI [email protected]
- Code released under the Apache-2.0 License
- Docs released under Creative Commons