You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote some mdoc documentation showing how to use ScalaTest with my library, and I found that mdoc does not fail when my examples fail because Shell.run does not have any way of failing--it just prints things and then returns. Suite.execute is the same way. It would be really handy if there were a normal way of running tests that reported pass/fail to the surrounding context somehow (throwing exceptions, returning Boolean, or returning Try).
The text was updated successfully, but these errors were encountered:
@cheeseng that could work, perusing the ScalaDoc it seems to to call that I need an Args which needs a Reporter and the concrete implementations seem to be private. That seems like a decent point but does still require substantial boilerplate (just having a decent like "ConsoleReporter" would make it work pretty well).
I wrote some mdoc documentation showing how to use ScalaTest with my library, and I found that mdoc does not fail when my examples fail because
Shell.run
does not have any way of failing--it just prints things and then returns.Suite.execute
is the same way. It would be really handy if there were a normal way of running tests that reported pass/fail to the surrounding context somehow (throwing exceptions, returning Boolean, or returning Try).The text was updated successfully, but these errors were encountered: