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
# baddeftest_check_constraintsreturnifmysql?# do testingend# gooddeftest_check_constraintsskip("MySQL does not support check constraints")ifmysql?# do testingend
Example: https://github.com/gregnavis/active_record_doctor/blob/fc736812db046e2c0bfdbb6cec0b837e01a35076/test/active_record_doctor/detectors/mismatched_foreign_key_type_test.rb#L6
When using
skip
, minitest will report a skipped tests summary at the end;--verbose
and--show-skips
will show skips (https://github.com/minitest/minitest/blob/0984e29995a5c0f4dcf3c185442bcb4f493ed5e3/lib/minitest.rb#L208-L214); minitest-reporters will show the skipped tests;skip
requires a reason with the existing cop (SkipWithoutReason
) and overall it is more clear the intention, than just simplereturn
.The text was updated successfully, but these errors were encountered: