1 year ago

#340557

test-img

mogli

replace ClassName with custom string to display in IntelliJ scalatest window

For a specific use case, we are trying to replace

ClassName with Verifying ClassName

in IntelliJ scala test case window.

For that, we overridden toString method in spec class as below :-

override def toString: String = s"Verifying ${getClass.getSimpleName}"

Still in IntelliJ test class, we can see only test ClassName name.

Kindly suggest, how to implement it.

enter image description here

scala

intellij-idea

scalatest

0 Answers

Your Answer

Accepted video resources