square/spoon — pull request #137 by fluxtah (2013-10-21 12:24:25+00:00)
Title: Test identifier adapter for support of other test runners

Currently spoon can run and collect test information from standard android tests, where test methods are prefixed with "test" since this is a requirement of JUnit 3.x.

This pull request allows spoon to adapt the TestIdentifier by using a TestIdentifierAdapter which is created based on a factory method TestIdentifierAdapter.create(String), where String is the qualified name of the test runner.

Tests running from cucumber-jvm for Android use pretty names for test class (feature) and test name (scenario), a CucumberTestIdentifierAdapter has been provided that will make these names compatible with spoon.

This is probably a crude solution but it works and would be great to get feedback from the spoon team to make the solution better.