Skip to content

Commit b2076f6

Browse files
committed
docs: much friendlier and easier english
1 parent e01f5db commit b2076f6

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,15 @@ By default, no test recording will be performed. Various system properties exis
9494
* possible values are `FLV` or `MP4`
9595
* defaults to `MP4`
9696

97-
To overwrite file naming convention, you need to create a class that extends the implements the interface [ContainerGebTestDescription](./src/testFixtures/groovy/grails/plugin/geb/ContainerGebTestDescription.groovy)
98-
and put its fully-qualified class name in a file `META-INF/services/org.spockframework.runtime.extension.IGlobalExtension`
99-
in the class path (for example, `src/integration-test/resources`).
100-
As soon as these two conditions are satisfied, the class is automatically loaded and used instead of the classes default behaviour.
101-
You may use said [DefaultContainerGebTestDescription](./src/testFixtures/groovy/grails/plugin/geb/DefaultContainerGebTestDescription.groovy)
102-
as a base class for your own implementation, and overwrite at minimum the `getTestId()` method to see a difference.
97+
To customize the naming convention for recording files:
98+
99+
1. Create a class that implements ContainerGebTestDescription.
100+
2. Specify its fully qualified class name in a `META-INF/services/grails.plugin.geb.ContainerGebTestDescription` file
101+
on the classpath (e.g., `src/integration-test/resources`).
102+
103+
Once both conditions are met, the class is automatically loaded and replaces the default behavior.
104+
105+
You may extend the default implementation, [`DefaultContainerGebTestDescription`](./src/testFixtures/groovy/grails/plugin/geb/DefaultContainerGebTestDescription.groovy), as a base for your custom implementation. To modify the naming convention, override at least the getTestId() method.
103106

104107
#### Observability and Tracing
105108
Selenium integrates with [OpenTelemetry](https://opentelemetry.io) to support observability and tracing out of the box. By default, Selenium [enables tracing](https://www.selenium.dev/blog/2021/selenium-4-observability).

0 commit comments

Comments
 (0)