thriftrw / thriftrw-node

A thrift binary encoding library using bufrw
MIT License
57 stars 25 forks source link

Restore decentralized testing #174

Closed kriskowal closed 4 years ago

kriskowal commented 4 years ago

Individual test modules can be run in isolation.

This change refactors the async/sync loading wrapper such that it can be used as a utility instead of a scaffold for running tests.

The change also withdraws the use of the loader wrapper for the test cases that make no use of the module loader.

Most tests use a source string or a static file.

Evidently, the infrastructure for browser testing allows for synchronously reading static assets in tests.