FormidableLabs/radium

Rewrite all tests as blackbox

Open

#386 opened on Oct 18, 2015

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (7,414 stars) (352 forks)batch import
chorehelp wanted

Description

There are two types of tests in Radium.

  1. The older, whitebox, tests that require internal modules and test them individually. These tests are fragile and hard to maintain, relying on module injection. Even worse, they don't represent real usage.
  2. The newer, blackbox, tests, which test Radium exactly as external callers would (using the decorator or wrapper function). The new tests are easier to write, since they are using the public API, and represent actual use cases for Radium.

We should rewrite the entire test suite, wherever possible , in the new style. This probably also means splitting up the tests from the single file they are in now, radium-test.js.

Contributor guide