Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Produce test coverage reports #1359

Merged
merged 2 commits into from
May 12, 2020

Conversation

jamiebrynes7
Copy link
Contributor

Description

When running our tests, we will now output an .xml file with test coverage information. This will later be consumed by a service. I've also removed the Playmode tests for the playground project as we have none of those. I'm pretty sure that the existing Playmode tests can be ported to Editmode in the test-project too. This should cut down on runtime :)

Tests

Observed artifacts in CI.

Documentation

  • Changelog

@improbable-prow-robot improbable-prow-robot added jira/no-ticket Indicates a PR has no corresponding JIRA ticket size/S Denotes a PR that changes 15-39 lines, ignoring generated files. A: maintenance Area: Project maintenance or hygiene labels May 11, 2020
@jamiebrynes7
Copy link
Contributor Author

This should cut down on runtime.

Cuts approximately 2 minutes off the test step 🎉

@@ -63,6 +60,9 @@ echo "--- Testing Unity: Test Project Playmode :joystick:"
pushd "test-project"
dotnet run -p "${PROJECT_DIR}/.shared-ci/tools/RunUnity/RunUnity.csproj" -- \
-batchmode \
-enableCodeCoverage \
-coverageResultsPath "${COVERAGE_RESULTS_PATH}/test-project" \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it be oke that this and the editmode tests go to the same location?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It creates an Editmode/Playmode folder for each 😄

@jamiebrynes7 jamiebrynes7 merged commit 7ab2c5a into develop May 12, 2020
@improbable-prow-robot improbable-prow-robot deleted the feature/generate-test-coverage-reports branch May 12, 2020 11:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A: maintenance Area: Project maintenance or hygiene jira/no-ticket Indicates a PR has no corresponding JIRA ticket size/S Denotes a PR that changes 15-39 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants