Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

build react test renderer capybara driver #7

@sfcgeorge

Description

@sfcgeorge

React provides a Test Renderer that renders into pure JS - doesn't need a full browser and doesn't even need JSDom. This would make for the fastest most reliable tests, a really nice proposition.

Due to its limited nature it's only really unit tests, not full acceptance tests. This could be a good option to have - we could have 2 Capybara drivers for use with Hyper Spec, one for unit testing Hyperloop components, and one for fuller acceptance tests. See #6 for a list of options.

I reckon an interface to the React Test Renderer could actually be built as a Capybara driver using mini_racer. A lot of the Capybara DSL wouldn't have a 1 to 1 mapping, but it may still be possible to massage a subset into working.

I'd like to try #6 first as I think JSDom would be the easiest driver to write, with the most flexible balance of speed and functionality. Plus it would work for other JavaScript tests in your app, not just Hyperloop stuff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions