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
use_ok is generally considered harmful, or at least unnecessary, if all is required is to load a module in a test. A simple use will work fine and will stop the test if it fails rather than trying to push on.
Remove recommendations for use_ok just to load a module in the docs
Recommend require_ok if a series of modules need to be loaded
The text was updated successfully, but these errors were encountered:
Rather than write a whole bunch of docs about why use_ok() is evil and
clutter things up for new developers, require_ok() has been emphesized.
* The main docs have been moved to require_ok()
* require_ok() comes first
* use_ok() is gone from the SYNOPSIS
* Various misuses of use_ok() are mentioned
* The "Module Tests" blurb doesn't give bad advice
For #288
use_ok
is generally considered harmful, or at least unnecessary, if all is required is to load a module in a test. A simpleuse
will work fine and will stop the test if it fails rather than trying to push on.use_ok
just to load a module in the docsrequire_ok
if a series of modules need to be loadedThe text was updated successfully, but these errors were encountered: