Ordering a unit to hold position (with no other targeting orders) will cause it to attack an enemy within range, if possible.



However, setting a unit to hold position and then ordering it to move within range of an opponent causes it to end its turn without attacking. (Tested with Telsem Warlocks against Harmonites.)