I have a requirement that uses criteria based sharing. I wish to unit test this requirement.
I have seen this SE post that says that we can not test Criteria based sharing and I have seen the help docs that also say criteria based sharing can not be unit tested. ("criteria-based sharing cannot be tested using Apex.")
However the post above is nearly 2 years old, so does anyone have a recommended approach around this to allow some level of testing of data visibility for a specific profile or public group member within unit tests?