syrusakbary / snapshottest

Snapshot Testing utils for Python 📸
MIT License
530 stars 103 forks source link

Extract TestRunner to a mixin so it can be used with alternative base classes #126

Closed jackton1 closed 4 years ago

jackton1 commented 4 years ago

@syrusakbary

paulmelnikow commented 4 years ago

Hi! Thanks for the contribution. What's the purpose of this change? To use TestRunnerMixin without DiscoverRunner?

jackton1 commented 4 years ago

Currently using https://github.com/xmlrunner/unittest-xml-reporting and wanted to extend it to include snapshot's test runner.

class TestRunner(TestRunnerMixin, XMLTestRunner):
    pass
jackton1 commented 4 years ago

@paulmelnikow ⬆️