Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ TEST RESULT: 🟢 SUCCESS

### 🔎 Is GherXunit for You?
If your team already uses xUnit and wants to experiment with a BDD approach without drastically changing its workflow, **GherXunit** may be an option to consider. It does not eliminate all BDD challenges but seeks to facilitate its adoption in environments where xUnit is already widely used.
See more usage examples and implementation details for `Background`, `Rule`, `Features`, and other elements in the [sample code](/src/sample/BddSample/Samples) available in the **GherXunit** repository.
See more usage examples and implementation details for `Background`, `Rule`, `Features`, and other elements in the [sample code](/src/base/GherXunit.Core/Samples) available in the **GherXunit** repository.


## 📚 References
Expand Down
3 changes: 1 addition & 2 deletions README_PTBR.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ TEST RESULT: 🟢 SUCCESS

Se a sua equipe já usa xUnit e deseja experimentar uma abordagem mais próxima do BDD, sem mudar drasticamente seu fluxo de trabalho, o GherXunit pode ser uma opção a considerar. Ele não elimina todos os desafios do BDD, mas busca facilitar sua adoção em ambientes onde o xUnit já é amplamente utilizado.
Veja mais exemplos de uso e detalhes de implementação de `Background`, `Rule`, `Features` e outros elementos
no [código exemplo](/src/sample/BddSample/Samples) disponível no repositório do GherXUnit.

no [código exemplo](/src/base/GherXunit.Core/Samples) disponível no repositório do GherXUnit.

## 📚 Referências

Expand Down
8 changes: 4 additions & 4 deletions src/base/GherXunit.Core/Attributes.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#nullable enable
global using Examples = Xunit.InlineDataAttribute;
using System.ComponentModel;
using GherXunitComponentModel = System.ComponentModel;
using Xunit;

namespace GherXunit.Annotations;

// Description attributes
public sealed class FeatureAttribute(string description) : DescriptionAttribute(description);
public sealed class RuleAttribute(string description) : DescriptionAttribute(description);
public sealed class BackgroundAttribute() : DescriptionAttribute("Background");
public sealed class FeatureAttribute(string description) : GherXunitComponentModel.DescriptionAttribute(description);
public sealed class RuleAttribute(string description) : GherXunitComponentModel.DescriptionAttribute(description);
public sealed class BackgroundAttribute() : GherXunitComponentModel.DescriptionAttribute("Background");

// Xunit attributes
public sealed class ScenarioAttribute(string displayName) : GherXunitFactAttribute(displayName);
Expand Down
1 change: 1 addition & 0 deletions src/base/GherXunit.Core/StringHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ private string HighlightKeyword(string input)

public static class Lexers
{
public static IGherXunitLexer Default => new DefaultGherXunitLexer();
public static IGherXunitLexer EnUs => new DefaultGherXunitLexer();
public static IGherXunitLexer PtBr => new PtBrGherXunitLexer();
}
Expand Down
8 changes: 4 additions & 4 deletions src/lib/GherXunit/GherXunit.Content.Attributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ public struct GherXunitAttributes
"""
#nullable enable
global using Examples = Xunit.InlineDataAttribute;
using System.ComponentModel;
using GherXunitComponentModel = System.ComponentModel;
using Xunit;

namespace GherXunit.Annotations;

// Description attributes
public sealed class FeatureAttribute(string description) : DescriptionAttribute(description);
public sealed class RuleAttribute(string description) : DescriptionAttribute(description);
public sealed class BackgroundAttribute() : DescriptionAttribute("Background");
public sealed class FeatureAttribute(string description) : GherXunitComponentModel.DescriptionAttribute(description);
public sealed class RuleAttribute(string description) : GherXunitComponentModel.DescriptionAttribute(description);
public sealed class BackgroundAttribute() : GherXunitComponentModel.DescriptionAttribute("Background");

// Xunit attributes
public sealed class ScenarioAttribute(string displayName) : GherXunitFactAttribute(displayName);
Expand Down
1 change: 1 addition & 0 deletions src/lib/GherXunit/GherXunit.Content.StringHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ private string HighlightKeyword(string input)
public static class Lexers
{
public static IGherXunitLexer Default => new DefaultGherXunitLexer();
public static IGherXunitLexer EnUs => new DefaultGherXunitLexer();
public static IGherXunitLexer PtBr => new PtBrGherXunitLexer();
}

Expand Down