a) If you plan to encrypt the drive, VeraCrypt "full format" when encrypting will fill the whole HDD with random data. If there's a bad sector or corruption, VeraCrypt will let you know or you can use CrystalClearlnfo application simultaneously.
b) If you're not planing to encrypt it, do the "complete format" option on Computer.
c) Any application that overwrite with one and zero (just search for them) and then use CrystalClearlnfo.
Each one of these options can take a long time to finish, a 5TB HDD can take 12 hour in each of these options.
you're going to run truenas? so ZFS is gonna be your file system?
If so, here's what I do (I use ZFS)... plug 'em in, run a SMART check (just in case DOA), then BAM straight into production.
No bullshitting.
I have had HDDs pass badblocks, & still fail ZFS. Seeing as it doesn't get much more strenuous than badblocks, why tf should I bother if even bb isn't weeding out the weak drives? I have back-ups, so I have nothing to worry about. Just straight in, ZFS will sort 'em out.
If you're using ZFS, dont' bother with all the fluffing about of testing etc. ZFS *IS* the test.