square / spoon

Distributing instrumentation tests to all your Androids.
https://square.github.io/spoon/
Apache License 2.0
2.7k stars 477 forks source link

When used with Cucumber, the Scanarios with names containing apostrophes are triggering testRunFailed #560

Open n-belokopytov opened 5 years ago

n-belokopytov commented 5 years ago

Spoon interprets the apostrophe as the end of the shell command it executes, thus triggering undefined behaviour.

For example adb shell 'am instrument "it's blablablatime"' will be executed as adb shell 'am instrument "it'

Leaving this issue here for posterity reasons in hopes anyone in the future encounters this error.