Replies: 1 comment 1 reply
|
TLDR; we should consider starting new sessions, new documents instead What is the goal? Currently, we are not setup to do this.
For testing in general, I feel it’s always wiser to start a new session for tests that require a clean memory space and/or a clean document. Currently, our test suite is under a locked document, so we can’t switch to a new fresh document, it does not make sense to unload commands or modules in this context Ideally, a good test suite should be divided into categories
run_tests_cmd could be launched with relevant Ap.CmdFlags At some point we will need to test drawings + code that may crash on some platforms, and we don’t want these tests to nuke the rest of the test suite. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I think that after each test (of each function) commands and modules loaded by this function should be removed. This can be easily implemented using
pytest.fixture(autouse=True)Dan, please advise what to look for when removing commands and modules (if it is at all possible).All reactions