pedrovgs/KotlinSnapshot
When add snapshot name manually, it isn't extracting the class name
Aberta
#45 aberto em 3 de out. de 2018
bughelp wanted
Métricas do repositório
- Stars
- (167 estrelas)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
Expected behaviour
When enabling testClassAsDirectory = true and you add a snapshot name manually like snap.matchWithSnapshot(anyObject, "snapshot name"), It should add a folder with the class name and add a file with the name snapshot name.snap
Actual behaviour
testClassAsDirectory = true but when you add a custom snapshot name, it isn't creating any folder with the test class name.
Steps to reproduce
val snap = KotlinSnapshot(testClassAsDirectory = true)
snap.matchWithSnapshot(anyObject, "snapshot name")
Version of the library
1.0.0