diff --git a/standardize_test_format/__init__.py b/standardize_test_format/__init__.py index debc17b..a9045ce 100644 --- a/standardize_test_format/__init__.py +++ b/standardize_test_format/__init__.py @@ -90,8 +90,14 @@ def format_test_prefix( ) -> str: indent = '' str_builder = [] + if with_javadoc: - str_builder += ['/** ', description, ' */', '\n'] + str_builder += ['/** '] + str_builder += [description] + if not description.endswith(END_SYMBOLS): + str_builder += ['.'] + str_builder += [' */', '\n'] + str_builder += [indent, '@', annotation] if with_display_name: str_builder += ['\n', indent, '@DisplayName("']