Initial test implementation
ClosedPublic

Authored by adrianchavesfernandez on Jan 19 2020, 10:46 PM.

Details

Reviewers
ltoscano
Summary

Allow running tests with tox

Have tests log coverage data

Add a basic test for Catalog load, amounting for 7% test coverage

Test Plan

tests pass

Diff Detail

Repository
R1046 Pology
Branch
coverage (branched from python3)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 21366
Build 21384: arc lint + arc unit
adrianchavesfernandez requested review of this revision.Jan 19 2020, 10:46 PM
adrianchavesfernandez created this revision.

Thanks! Do you think it would be possible to split the tox part (requirements, setup.py) from the partial porting (almost all changes under pology/) ?

Thanks! Do you think it would be possible to split the tox part (requirements, setup.py) from the partial porting (almost all changes under pology/) ?

You mean in Phabricator, to make reviewing easier, or in the final code commits? In my local branch I have them split in 3 commits (test setup with a dummy test, coverage data support added, and then this first test and the code changes needed to have it pass).

ltoscano accepted this revision.Feb 19 2020, 10:58 PM

Thanks! Do you think it would be possible to split the tox part (requirements, setup.py) from the partial porting (almost all changes under pology/) ?

You mean in Phabricator, to make reviewing easier, or in the final code commits? In my local branch I have them split in 3 commits (test setup with a dummy test, coverage data support added, and then this first test and the code changes needed to have it pass).

Sorry again for the delay. Ok, then please feel free to commit. I guess we could switch to invent if we need to have more commits like this.

This revision is now accepted and ready to land.Feb 19 2020, 10:58 PM

+1000 to moving to Invent, I’m much more used to that workflow.

@adrianchavesfernandez can you please push the sequence of changes directly?

I’ve moved this to https://invent.kde.org/sdk/pology/-/merge_requests/1 , where you can see the separate commits. Feel free to merge that or give feedback if you wish something changed.

Shall we close this?