Skip to content

Commit

Permalink
fix test name and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kochetkov-ma committed Nov 26, 2022
1 parent e6ff151 commit 1c8c1b5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,20 +200,19 @@ Allure results directory specified by system env `allure.results.directory` will
feature disabled by default.
You may enable by system env `allure.results.directory.clear`.

### Clean Up Allure metadata from `Test Names` ⚡NEW⚡
### Clean up allure metadata from `Test Names` ⚡NEW⚡
```kotlin
class ExampleDataDrivenSpec : FreeSpec({
"Scenario [J-100] (T-3) #999" - { }
})
```
will be without `[J-100] (T-3) #999`
```kotlin
class ExampleDataDrivenSpec : FreeSpec({
"Scenario" - { }
})
```
will be without `[J-100] (T-3) #999` in report

![img.png](img.png)
![img_2.png](img_2.png)


But, if some undetectable result you may disable it by `kotest.allure.meta.cleanup` system or env variable
But, if some unexpected result you may disable it by `kotest.allure.meta.cleanup` system or env variable

## Settings

Expand Down
Binary file added img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ internal object InternalUtil {
name = test.name.testName.allureMetaCleanUp() + suffix
description = meta.allDescriptions

fullName = test.descriptor.bestName() + index
testCaseId = test.descriptor.id.value + index
historyId = test.descriptor.bestName() + index
fullName = test.descriptor.bestName().allureMetaCleanUp() + index
testCaseId = test.descriptor.id.value.allureMetaCleanUp() + index
historyId = test.descriptor.bestName().allureMetaCleanUp() + index
labels = testCaseLabels(test, meta)
links = meta.allLinks
}
Expand Down

0 comments on commit 1c8c1b5

Please sign in to comment.