Skip to content

Commit

Permalink
Allure.Xunit improvements (#461)
Browse files Browse the repository at this point in the history
* Use common failed/broken algorithm by allure-xunit

* Remove obsolete allure-xunit's example

* Remove false warning for skipped theories (#421)

* Use the common skip reason for test plans

* Remove separate project for xunit reporter

* Consolidate Allure.Xunit under single namespace

* Remove obsolete API from Allure.Xunit

  - using-style steps/fixtures:
      - Allure.Xunit.AllureBefore
      - Allure.Xunit.AllureAfter
      - Allure.Xunit.AllureStep
      - Allure.Xunit.AllureStepBase
  - Async attachment functions in Allure.Xunit.AllureAttachments
  - Unused internal methods of AllureXunitHelper that had accidentally
    leaked into public API:
      - StartTestContainer
      - StartTestCase
      - MarkTestCaseAsFailedOrBroken
      - MarkTestCaseAsPassed
      - MarkTestCaseAsSkipped
      - FinishTestCase
  - The Allure.Xunit.Steps class
  - AllureXunitAttribute and AllureXunitTheoryAttribute
    (not used anymore)

* Fix allure-xunit README

* Make internal API hidden from public

* Make second reporter resolution more strict (#412)

Now, it only considers assemblies with names matching the
*reporters* pattern.

* Set Allure.Xunit's TFMs to netstandard2.0 and netcoreapp3.1

* Remove redundant code from AllureXunitHelper

* Ensure proper casing at Allure.Xunit fs names
  • Loading branch information
delatrie authored Mar 28, 2024
1 parent 39cbb9b commit bf869a2
Show file tree
Hide file tree
Showing 63 changed files with 294 additions and 642 deletions.
4 changes: 2 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"theme:xunit":
- changed-files:
- any-glob-to-any-file:
- "Allure.XUnit/**"
- "Allure.XUnit.Tests/**"
- "Allure.Xunit/**"
- "Allure.Xunit.Examples/**"

"theme:nunit":
- changed-files:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ jobs:
run: |
sed -i -e '/"$ref"/s|/allure-csharp/[^/]*|/allure-csharp/${{ env.release_version }}|g' ./Allure.NUnit/Schemas/allureConfig.schema.json
cat ./Allure.NUnit/Schemas/allureConfig.schema.json
sed -i -e '/"$ref"/s|/allure-csharp/[^/]*|/allure-csharp/${{ env.release_version }}|g' ./Allure.XUnit/Schemas/allureConfig.schema.json
cat ./Allure.XUnit/Schemas/allureConfig.schema.json
sed -i -e '/"$ref"/s|/allure-csharp/[^/]*|/allure-csharp/${{ env.release_version }}|g' ./Allure.Xunit/Schemas/allureConfig.schema.json
cat ./Allure.Xunit/Schemas/allureConfig.schema.json
sed -i -e '/"$ref"/s|/allure-csharp/[^/]*|/allure-csharp/${{ env.release_version }}|g' ./Allure.SpecFlowPlugin/Schemas/allureConfig.schema.json
cat ./Allure.SpecFlowPlugin/Schemas/allureConfig.schema.json
sed -i -e '/"$schema"/s|/allure-csharp/[^/]*|/allure-csharp/${{ env.release_version }}|g' ./Allure.Net.Commons/allureConfig.Template.json
cat ./Allure.Net.Commons/allureConfig.Template.json
sed -i -e '/"$schema"/s|/allure-csharp/[^/]*|/allure-csharp/${{ env.release_version }}|g' ./Allure.NUnit.Examples/allureConfig.json
cat ./Allure.NUnit.Examples/allureConfig.json
sed -i -e '/"$schema"/s|/allure-csharp/[^/]*|/allure-csharp/${{ env.release_version }}|g' ./Allure.XUnit.Examples/allureConfig.json
cat ./Allure.XUnit.Examples/allureConfig.json
sed -i -e '/"$schema"/s|/allure-csharp/[^/]*|/allure-csharp/${{ env.release_version }}|g' ./Allure.Xunit.Examples/allureConfig.json
cat ./Allure.Xunit.Examples/allureConfig.json
sed -i -e '/"$schema"/s|/allure-csharp/[^/]*|/allure-csharp/${{ env.release_version }}|g' ./Allure.SpecFlowPlugin/allureConfig.Template.json
cat ./Allure.SpecFlowPlugin/allureConfig.Template.json
sed -i -e '/"$schema"/s|/allure-csharp/[^/]*|/allure-csharp/${{ env.release_version }}|g' ./Allure.Features/allureConfig.json
Expand Down
69 changes: 0 additions & 69 deletions Allure.XUnit.Examples/ExampleSteps.cs

This file was deleted.

14 changes: 0 additions & 14 deletions Allure.XUnit.Reporters/Allure.XUnit.Reporters.csproj

This file was deleted.

14 changes: 0 additions & 14 deletions Allure.XUnit/AllureAfter.cs

This file was deleted.

48 changes: 0 additions & 48 deletions Allure.XUnit/AllureAttachments.cs

This file was deleted.

14 changes: 0 additions & 14 deletions Allure.XUnit/AllureBefore.cs

This file was deleted.

14 changes: 0 additions & 14 deletions Allure.XUnit/AllureStep.cs

This file was deleted.

57 changes: 0 additions & 57 deletions Allure.XUnit/AllureStepBase.cs

This file was deleted.

16 changes: 0 additions & 16 deletions Allure.XUnit/Attachments.cs

This file was deleted.

12 changes: 0 additions & 12 deletions Allure.XUnit/Attributes/AllureXunitAttribute.cs

This file was deleted.

12 changes: 0 additions & 12 deletions Allure.XUnit/Attributes/AllureXunitTheoryAttribute.cs

This file was deleted.

12 changes: 0 additions & 12 deletions Allure.XUnit/Attributes/Steps/AllureAfterAttribute.cs

This file was deleted.

12 changes: 0 additions & 12 deletions Allure.XUnit/Attributes/Steps/AllureBeforeAttribute.cs

This file was deleted.

12 changes: 0 additions & 12 deletions Allure.XUnit/Attributes/Steps/AllureStepAttribute.cs

This file was deleted.

11 changes: 0 additions & 11 deletions Allure.XUnit/Attributes/Steps/NameAttribute.cs

This file was deleted.

8 changes: 0 additions & 8 deletions Allure.XUnit/Attributes/Steps/SkipAttribute.cs

This file was deleted.

Loading

0 comments on commit bf869a2

Please sign in to comment.