Closed schoeller closed 5 months ago
Hi, thanks for the report. This is an interesting case because I am aware of these failures, but I’m not sure how to deal with them.
The short version: These are classes and functions missing in BricsCAD, or BricsCAD has different behavior than AutoCAD
Long version: I use the ObjectARX SDK to create the wrappers and tests. Then I compile for other platforms such as BricsCAD. If I run into a compiler error, then I throw an exception. I.e. Exception, Not implemented in BRX!, function diameter ,Line 2741, File PyDbEnts.cpp:
I report serious bugs to Bricsys, but not for features that are not commonly used. If there’s a feature that you need, create an issue here and I will create a support ticket on your behalf or ask that you be included in the conversation.
I only want to generate one interfaces, one set of .pyi files. I don’t want to hide failing tests, so I will add I’ll add something like “This is a known failure”.
@Canary818 would it be possible for you to add a message to known failing tests? something like "Known failure in {}" or maybe there's already a way to do this in the test suite.
you can get the running app from function
host = Ap.Application.hostAPI() #make this a global? .... if host == "BRX24": "known ..." ....
Would this be an option?
....
host = PyAp.Application.hostAPI()
....
@unittest.skipIf(host == "BRX24", "Skipping test due to BricsCAD behaviour on 'preMultBy'")
def test_scale2_preMultBy(self):
Thanks for the tip!
I was toying with this by putting skip in the body, I like your attribute better I had asked Canary818 to wait on this because I’m reluctant to ‘hide’ test failures, I want people to know that somethings just don’t work on some platforms. But on the other hand, if a change is made that causes a new test failure, it will most certainly get lost in the noise.
At some point, the test system should be expanded, maybe write to a log as well so it can be parsed by a log viewer. But for now , @unittest.skipIf works
Dear all,
thanks again for this open source. when running pytestall under BCAD V24 I received the following error:
I am running Python 3.12.2 and PyRx version <1.1.161.20240226>. Please advise as of how to assist further.
Best regards
Sebastian