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
While the compiled tests are good for execution, it would be nice to perform some static analysis as well. For example, annotation values, parameter types, return types, etc. can all be tested by introspecting the classes in a test and checking for expected values.
The text was updated successfully, but these errors were encountered:
One idea for this is to create an assertion helper which introspects classes inside of the compiled classloader (in-memory compilation), done through the compiled tests harness. The helper could even be fluent and generated by Flapi itself. Something like: assert.that(clazz).method("getName").hasReturnType(String.class)
This is a non-trivial amount of work, and I'm not sure where it would be most useful. Probably then it will have to wait until a significant feature or breakage warrants the investment.
While the compiled tests are good for execution, it would be nice to perform some static analysis as well. For example, annotation values, parameter types, return types, etc. can all be tested by introspecting the classes in a test and checking for expected values.
The text was updated successfully, but these errors were encountered: