cdisc-org / cdisc-rules-engine

Open source offering of the cdisc rules engine
MIT License
46 stars 12 forks source link

regression tests for issues 164 and 576 #626

Closed RamilCDISC closed 1 month ago

RamilCDISC commented 6 months ago

This PR is to push regression tests for issue #164 and #576 .

gerrycampion commented 4 months ago

I am still reviewing this, but the first issue I am running into is that these tests have the @pytest.mark.regression annotation and these are not being automatically picked up by the test collector.

RamilCDISC commented 4 months ago

I am still reviewing this, but the first issue I am running into is that these tests have the @pytest.mark.regression annotation and these are not being automatically picked up by the test collector.

Please run tests marked as regression by passing "-m regression" to the pytest. If your tests are in folder named"tests" your command will be: python -m pytest -m regression "path to test folder" This will run only tests marked as regression

RamilCDISC commented 4 months ago

I have added a function in the conftest.py to return the path of the python executable. The function is used in all regression tests to get the path and execute tests. Also added pytest.ini in root folder to remove the warnings