Store contexts as todos, not tags, step 7: fixing feature tests
ClosedPublic

Authored by dfaure on Feb 19 2019, 12:04 AM.

Details

Summary
  • port testdata XML to using context items instead of tags
  • creating a context now requires a datasource

ctest finally says:
100% tests passed, 0 tests failed out of 99

That doesn't mean the work is done. All it means is that any remaining
bugs will point to holes in the automated tests :-)

Diff Detail

Repository
R4 Zanshin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dfaure requested review of this revision.Feb 19 2019, 12:04 AM
dfaure created this revision.
ervin requested changes to this revision.Mar 2 2019, 10:27 AM

Admittedly I'm confused by some of the changes in the XML

tests/features/testenv/data/testdata.xml
83

Just removing it without inserting it in the VEVENT payload sounds wrong to me. At least it makes sure we don't look in VEVENTs

tests/units/akonadi/testenv/data/testdata.xml
166

ditto

205

ditto

This revision now requires changes to proceed.Mar 2 2019, 10:27 AM
dfaure added inline comments.Mar 2 2019, 12:07 PM
tests/features/testenv/data/testdata.xml
83

Ah, hmm, OK, not that there's any chance of the CONTEXTLIST attribute ever getting into a VEVENT, unlike tags....

tests/units/akonadi/testenv/data/testdata.xml
205

Well, it's just completely unused, but OK, adding back, makes no difference to the tests.

dfaure updated this revision to Diff 52967.Mar 2 2019, 12:30 PM

push v2 (scripted)

ervin accepted this revision.Mar 2 2019, 3:26 PM

Thanks, I like having dirty and broken data at places.

This revision is now accepted and ready to land.Mar 2 2019, 3:26 PM
This revision was automatically updated to reflect the committed changes.