Case Sensitive Language

If you are writing tests in a non-English, case sensitive language, such as e.g. German, you may write your test method names with underscores like this:

@Test
public void überprüft_Eingabedaten_für_Fail_Fast() {
  ...
}

Words are separated by an underscore ("_"). Words are rendered verbatim into the Report.

The rendered result.

Note that in case this is not an option for you, you may use the TestDocHints annotation to override the sentence generator.

Running the APT processor you need to configure a specific name translator. Due to bug MCOMPILER-135 in the Maven compiler plugin, you have to add the multiple arguments in this way:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  <version>2.3.2</version>
  <configuration>
    <source>1.6</source>
    <target>1.6</target>
  </configuration>
  <executions>
    <execution>
      <id>default-testCompile</id>
      <configuration>
        <annotationProcessors>
          <annotationProcessor>de.smartics.testdoc.collect.processor.TestDocProcessor</annotationProcessor>
        </annotationProcessors>
        <testCompilerArgument>-Atdoc.exporter.baseDir=${project.build.directory}/testdoc/ser" "-Atdoc.testNameUtils=de.smartics.testdoc.report.doc.names.CaseSensitiveTestNameUtils</testCompilerArgument>
        <fork>true</fork>
      </configuration>
    </execution>
  </executions>
</plugin>