You can use test dummies to test out your weapons and check out how much damage you can do to them.
They do not have durability, and they have a few different modes such as a damage counter mode!
Test dummies are craftable items. The recipe is:
To remove a test dummy, remove the block under it.