Score:3

How to get Automation testing results of Drupal contributed module through Drupal.org rest API?

lb flag

I am trying to get automated testing results of contributed modules through https://www.drupal.org/drupalorg/docs/apis/rest-and-other-apis.

I am able to get nid and vid of any contributed module through the node info API.

And I want to access DrupalCI jobs: pift_ci_job.json or pift_ci_job.xml

Which returns a specific job: https://www.drupal.org/api-d7/pift_ci_job/[jobid].json

But, there is nowhere mentioned of jobid required for getting the automation testing results, can anyone tell me if there is any way for getting jobid of a contributed module?

Score:1
us flag

https://www.drupal.org/api-d7/pift_ci_job.json returns a list of all the DrupalCI tests, in the same way https://www.drupal.org/api-d7/node.json returns a list of all the nodes.

That's the only way to get a list of the tests associated to an issue because there isn't a comment/node field for tests, which would otherwise be returned in https://www.drupal.org/api-d7/node/3220733.json (the RESTWS URL for [PHP8] Tests are failing in PHP 8 / Drupal 9.2.x) or https://www.drupal.org/api-d7/comment/14145081.json (the RESTWS URL for comment #3 in that issue).

The information about tests shown in the attached file table is added by the Project issue file test in pift_nodechanges_file_changes_element_alter().

You can filter the job list, though. For example, you could filter by:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.