Skip to content

Fix artifact download error in GitHub Actions#56

Open
fszymaniak wants to merge 4 commits intomainfrom
claude/fix-artifact-download-acPYb
Open

Fix artifact download error in GitHub Actions#56
fszymaniak wants to merge 4 commits intomainfrom
claude/fix-artifact-download-acPYb

Conversation

@fszymaniak
Copy link
Owner

  • Replace [Fact] with [AllureXunit] attribute in all 33 test files (313 tests) to enable Allure.Xunit to capture test results

  • Add global using for Allure.Xunit.Attributes in tests/Directory.Build.props

  • Fix artifact download by using dawidd6/action-download-artifact@v6 which can download artifacts from previous workflow runs, not just the current run. This fixes the "Artifact not found for name: allure-history" error that occurs on first run or when artifact is expired.

- Replace [Fact] with [AllureXunit] attribute in all 33 test files (313 tests)
  to enable Allure.Xunit to capture test results

- Add global using for Allure.Xunit.Attributes in tests/Directory.Build.props

- Fix artifact download by using dawidd6/action-download-artifact@v6
  which can download artifacts from previous workflow runs, not just
  the current run. This fixes the "Artifact not found for name: allure-history"
  error that occurs on first run or when artifact is expired.
The E2E test files had explicit using directives that didn't include
the Allure namespace, causing build failures. Added the missing
using directive to all E2E test files.
Move Xunit and Allure.Xunit.Attributes using directives to the project
file level (like other test projects) to ensure proper resolution during
build. This is more consistent with how other test projects are configured.
The AllureXunit attribute was removed in Allure.Xunit 2.12.0.
In version 2.14.1, Allure automatically integrates with xUnit using
the standard [Fact] and [Theory] attributes - no special attributes needed.

See: https://allurereport.org/docs/xunit/

Changes:
- Revert all [AllureXunit] back to [Fact]
- Remove unnecessary Allure.Xunit.Attributes global usings
- Keep Allure.Xunit package for automatic test result generation
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants