cdisc-org / cdisc-rules-engine

Open source offering of the cdisc rules engine
MIT License
48 stars 13 forks source link

Add and update regression tests #496

Closed RamilCDISC closed 1 year ago

RamilCDISC commented 1 year ago

This PR is for adding new Regression Tests and updating old ones. I have added a regex match assertion for validate and test command regression tests to catch the soft error which result in rule skip but not in execution of the validation. I have added more regression tests in test_Issues folder and marked them as 'regression': so that they wont run in routine unit tests.

To run regression tests of test_issues you can use following command python -m pytest -m "regression" tests Note that this will run only tests marked as regression.

To achieve the above functionality through pytest i have added two hooks in conftest.py file.