Fix artifact download error in GitHub Actions#56
Open
fszymaniak wants to merge 4 commits intomainfrom
Open
Conversation
- 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 Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.