Skip to content

Interactive Detox (REPL) #4239

Open
@noomorph

Description

@noomorph

Describe your idea

Add a special mode of Detox where a single test is executed in a way that utilizes the abilities of an interactive shell.

@d4vidi says:

I envision writing a test step-by-step -- with the tested app fully running on a device, with each line written on the fly with the help of the shell, suggesting Detox API's completion as you type JavaScript code in.
It can also allow executing the line (~== invocation), inspecting the result (assertion success/failure), and then rerunning it with changes based on the result.

Given the shell could sport some additional helper functions - the most fundamental of which is to get a dump of the view hierarchy on demand (!), this could make a pretty helpful tool, well-reducing test-writing / maintenance friction.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions