-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestFactory doesn't seem to work with Kotlin (lambdas) #234
Comments
hey! can you clarify, where does |
It's from junit5 - dynamicTest = |
hmm, that rings some bells then. I wonder, I think we once looked into that. I'll check. |
There we go, I found something: https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/src/test/java/org/approvaltests/namer/JUnit5StackTraceNamerTest.java#L92 We even have some advice when things go wrong, but apparently this exception message didn't reach you :/ |
I'm using For some reason this code doesn't seem to work with Kotlin. I'll create small project with example, and I'll try to fix it. |
Ok I found it. I'll submit PR with fix. Kotlin has different style of encoding lambda(s) in method names so https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests-util/src/main/java/com/spun/util/tests/TestUtils.java#L224 needs to be updated. |
Hello there! First, thanks a lot for
ApprovalTests.Java
:)I'm having a problem with TestFactory style tests written in Kotlin. I would like to use Approvals.verify in them but I get exception.
Following test
throws this exception:
The text was updated successfully, but these errors were encountered: