tests: Mark non-LuaSandbox tests as @group Standalone

This means that these tests are only run for test runs on this repo,
and will not be run when this repo is included in CI as a dependency
of any other repos, or the Wikimedia-wide gate. Any changes to other
repos are implicitly assumed to be unable to break these tests.

Bug: T125050
Change-Id: I7b77c0627f3fbe9dfbbf3d63cbd57e943d328555
This commit is contained in:
James D. Forrester 2020-04-08 14:27:28 -07:00
parent 93cb459def
commit 4a9b2e61e7
2 changed files with 5 additions and 0 deletions

View file

@ -82,6 +82,10 @@ trait Scribunto_LuaEngineTestHelper {
$groups = Test::getGroups( $className, $name );
$groups[] = 'Lua';
$groups[] = $engineName;
// Only run tests locally if the engine isn't the MW sandbox T125050
if ( $engineName !== 'LuaSandbox' ) {
$groups[] = 'Standalone';
}
$groups = array_unique( $groups );
$data = Test::getProvidedData( $className, $name );

View file

@ -11,6 +11,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group Lua
* @group LuaStandalone
* @group Standalone
* @covers Scribunto_LuaStandaloneInterpreter
*/
class Scribunto_LuaStandaloneInterpreterTest extends Scribunto_LuaInterpreterTest {