As a general approach it would depend on your function. Testing a single function will be either critical action or critical permission. Which type would depend if you have transactions or not
i wouldnt do this for formal testing but for prototyping as its a bit of build effort involved