Skip to content

Set up test coverage - #166

Merged
mrliptontea merged 5 commits into
masterfrom
coverage
Sep 8, 2026
Merged

Set up test coverage#166
mrliptontea merged 5 commits into
masterfrom
coverage

Conversation

@mrliptontea

Copy link
Copy Markdown
Member
  • Set up test coverage
  • Add additional tests, to improve test coverage

$graph->add_literal_triple($subject, FOAF_NAME, 'Anne Example');

$this->tripod->saveChanges(new ExtendedGraph(), $graph);
$tripod2->saveChanges(new ExtendedGraph(), $graph);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensures source data is present - previously this test would pass because another would insert the data, but adding executionOrder="depends,defects" to PHPUnit config changes that.

Comment on lines +1160 to +1162
if (strpos($collectionName, 'system.') === 0) {
continue;
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

system.indexes could be present from other tests, tripping this up.

Comment on lines -50 to -51

$this->loadResourceDataViaTripod();

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed from setUp so tests can call it and alternatively clean up before

@mrliptontea
mrliptontea merged commit 218896b into master Sep 8, 2026
10 checks passed
@mrliptontea
mrliptontea deleted the coverage branch September 8, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants