Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/reusable-test-runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ on:
required: false
type: string
default: ''
coverage-options:
description: 'Options for configuring code coverage. https://game.ci/docs/github/test-runner#coverageoptions'
required: false
type: string
default: 'generateAdditionalMetrics;generateHtmlReport;generateBadgeReport'
secrets:
UNITY_LICENSE:
required: true
Expand Down Expand Up @@ -82,6 +87,7 @@ jobs:
artifactsPath: ${{ matrix.testMode }}-artifacts
githubToken: ${{ secrets.GITHUB_TOKEN }}
checkName: ${{ matrix.testMode }} Test Results
coverageOptions: ${{ inputs.coverage-options }}
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
13 changes: 0 additions & 13 deletions Assets/Tests/PlayMode/PlayTests2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,6 @@ public IEnumerator RigidbodyGravityTest()
Assert.That(rb.useGravity, Is.True, "Rigidbody should have gravity enabled.");
}

[UnityTest]
public IEnumerator AudioSourcePlayTest()
{
var audioObject = new GameObject("TestAudio");
var audioSource = audioObject.AddComponent<AudioSource>();
audioSource.clip = AudioClip.Create("TestClip", 44100, 1, 44100, false);
audioSource.Play();

yield return null;

Assert.That(audioSource.isPlaying, Is.True, "The AudioSource should be playing.");
}

[UnityTest]
public IEnumerator GameObjectScaleChangeTest()
{
Expand Down
Loading