I put generic test nodes which act as dummy or fake nodes for faking, not verifying (according to the general terminology of test doubles in software engineering) into a package rosfake. However integrating custom verification nodes into rostest seems to be not straightforward according to the comment to this question on answers.ros.org. @asmodehn What is your approach of integrating custom verification nodes?

It makes sense to put spy and mock nodes for verifying into a package rosmock. However to get something like that generic is harder because e.g. the package depends on the test framework used to assert.

What license do you use for pyros-test? What test framework do you use to assert? If one would use Python unittest which is widely supported “to beeing integrated” into other frameworks one could think about to merge generic verification nodes into a kind of rosmock. PRs into rostest take too long to be accepted (if they get accepted at all). I think the functionality of rostest (providing the test framework) and the verification part (generic fake nodes → rosfake, generic verification → rosmock) would better be separated anyway…