Skip to content

aweXpect/aweXpect.Migration

aweXpect.Migration

Nuget Build Quality Gate Status Coverage

We added support to migrate from other testing frameworks.

  1. Temporarily install the aweXpect.Migration package in the test project and add the following global using statements in the test project:

    global using System.Threading.Tasks;
    global using aweXpect;
  2. Depending on the framework, the assertions will be marked with a warning:

    • For FluentAssertions:
      All usages of .Should() will be marked with aweXpectM002: fluentassertions should be migrated to aweXpect
    • For Xunit:
      All usages of Assert will be marked with aweXpectM003: Xunit assertions should be migrated to aweXpect
  3. Most warnings can be automatically fixed with a code fix provider. Make sure to await all migrated expectations (fix aweXpect0001: Expectations must be awaited or verified).

  4. Fix the remaining warnings manually.

  5. Remove the aweXpect.Migration package again.

About

Migration helpers from other assertion libraries.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors