Skip to content

Create tests for all async effects #3631

Open
@Pikachu920

Description

@Pikachu920

Tests should be created for all current + future async effects ensuring that local variables function properly before and after their execution. For example:

test "teleport local variable persistence":
  set {localTest::EffTeleport} to random uuid
  set {_local} to {localTest::EffTeleport}
  spawn a creeper
  teleport last spawned entity to spawn of (world of last spawned entity)
  assert {_local} is {localTest::EffTeleport} with "local variable does not match (%{_local}% != %{localTest::EffTeleport}%)"

Metadata

Metadata

Assignees

Labels

enhancementFeature request, an issue about something that could be improved, or a PR improving something.good first issueAn issue that would be good for a first-time contributor to make a PR forpriority: lowest"Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).unit testingFor issues/PRs related to the Skript unit testing system.variablesRelated to variables and/or storing them.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions