unity-test-runner icon indicating copy to clipboard operation
unity-test-runner copied to clipboard

Link annotation to the corresponding check

Open davidmfinol opened this issue 4 years ago • 5 comments

When a unit test fails and a githubToken is provided, an annotation is created detailing why the test failed. Ideally, this annotation would have a link on the right hand side that links to the created check, similar to the "Tests Failed! Check 'Test Results' for details." annotation that links to the "Test Code Quality" check in this image: image

davidmfinol avatar Feb 26 '21 06:02 davidmfinol

I'm creating this as a separate issue from the main createCheck feature, since I believe it would be useful, and it should be possible, but I haven't found a solution for it yet. Would appreciate help.

davidmfinol avatar Feb 26 '21 06:02 davidmfinol

Hey there! The feature/createCheck branch was the one branch that made me start using this test runner system for our projects. Since the branch was merged, I can't seem to use it anymore. Is there a way I can use this feature in GitHub Actions?

Mannilie avatar Feb 28 '21 01:02 Mannilie

Right now you can use @main (which is generally not recommended) but we'll be creating a release soon (in the coming days).

webbertakken avatar Feb 28 '21 01:02 webbertakken

That's perfect! Thanks for at :) I'll be sure to change it when a release comes out.

Mannilie avatar Feb 28 '21 02:02 Mannilie

@Mannilie FYI, you can do this now:

        uses: game-ci/unity-test-runner@v2
        with:
          githubToken: ${{ secrets.GITHUB_TOKEN }}

I'll be marking this comment and the others as off-topic, so that others can focus on the contents of this issue.

davidmfinol avatar Mar 03 '21 00:03 davidmfinol