At the moment, to run a test we need to call:
PREFIX=/opt/dirsrv PYTHONPATH=/path/to/lib389 py.test ds/dirsrvtests/path/to/test
To test the full suite of the ds is very time consuming and hard with this approach.
It would be good to have an interface such as:
PYTHONPATH=/path/to/lib389 make test
PYTHONPATH=/path/to/lib389 make test <testname/ticket number/suite name>
This would make it easier to fully test ds and find regressions, as well as lowering the bar to a CI system in the future.
A significant amount of work would be required to pull this off, but in the long run it could really benefit the quality and testing process for ds.
attachment 0001-Ticket-48333-Simplify-accessiblitiy-of-tests-for-ds.patch
Hi William,
I think, the best way to run CI is the using '''tox''' tool. It can prepare environment for testing, declare PYTHONPATH and many other things.
We can run CI with it on regular basis.
That is my opinion about this situation. Please, if anybody has something to add, join us.
I don't mind what tool we run for CI, but this is about making the tests:
This will mean we can test more frequently, even with the full test suite.
As you are better at QE than I am, I will take your advice on tools for CI.
Looks good, glad to see the python cache and compiled files being ignored too!
commit 46688108d35afd2b2f6fb7c1ea2d2d4f76d1a3a3 To ssh://git.fedorahosted.org/git/389/ds.git 324cf9f..2eeaf89 master -> master
Metadata Update from @mreynolds: - Issue assigned to firstyear - Issue set to the milestone: CI test 1.0
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here: - https://github.com/389ds/389-ds-base/issues/1664
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix (was: Fixed)
Login to comment on this ticket.