Skip to content

Commit

Permalink
github-workflow - Run tests in separate processes
Browse files Browse the repository at this point in the history
  • Loading branch information
EJMFarrow committed Mar 6, 2024
1 parent 16ad8ae commit 1bc2b08
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/external/delete_question_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@

/**
* Test the delete_question webservice function.
*
* @runTestsInSeparateProcesses
* @covers \gitsync\external\delete_question::execute
* @group qbank_gitsync
*
*/
class delete_question_test extends externallib_advanced_testcase {
/** @var \core_question_generator plugin generator */
Expand Down Expand Up @@ -78,7 +79,6 @@ public function setUp(): void {

/**
* Test the execute function when capabilities are present.
* @runInSeparateProcess
*/
public function test_capabilities(): void {
global $DB;
Expand Down
1 change: 1 addition & 0 deletions tests/external/export_question_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

/**
* Test the export_question webservice function.
* @runTestsInSeparateProcesses
* @group qbank_gitsync
*
* @covers \gitsync\external\export_question::execute
Expand Down
1 change: 1 addition & 0 deletions tests/external/get_question_list_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

/**
* Test the get_question_list webservice function.
* @runTestsInSeparateProcesses
* @group qbank_gitsync
*
* @covers \gitsync\external\get_question_list::execute
Expand Down
3 changes: 2 additions & 1 deletion tests/external/import_question_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
global $CFG;
require_once($CFG->dirroot . '/question/engine/tests/helpers.php');
require_once($CFG->dirroot . '/webservice/tests/helpers.php');
require_once($CFG->dirroot . '/lib/externallib.php');
require_once($CFG->dirroot . '/files/externallib.php');
require_once($CFG->dirroot. '/question/bank/gitsync/lib.php');

use context_course;
Expand All @@ -41,6 +41,7 @@

/**
* Test the export_question webservice function.
* @runTestsInSeparateProcesses
* @group qbank_gitsync
*
* @covers \gitsync\external\import_question::execute
Expand Down

0 comments on commit 1bc2b08

Please sign in to comment.