My company allows engineers to carry out an idle ground run on the gate with passengers on board.
At least one member of the tech crew must be in the flight deck, cabin crew must be on board and at their stations. Plus the usual announcement to let the customers know what's going on.