Description
Storm Petrel Expected Baselines Rewriter is an incremental source generator that produces modified versions of unit and integration tests. It updates the expected baselines in the original tests, automating the process of baseline creation and speeding up test development.
Main Functions
![product-key-features product-key-features](https://scand.com/wp-content/uploads/2019/10/product-key-features.png)
- Generate Modified Test Copies
Create modified "StormPetrel" test copies using .NET Incremental Generators with embedded context code.
- Update Expected Baselines
Automate updating expected baselines by capturing and converting actual baselines to C# code.
- Automate Baseline Creation
Run generated test copies to overwrite expected baselines and reduce manual effort and time.
- Component Integration
Use NuGet packages for fast development integration.
- Facilitate Manual Review
Apply manual review of updated baselines for accuracy after using automated testing tools.
Key Features
![StormPetrel-Calculator-Test-01 StormPetrel-](https://scand.com/wp-content/uploads/2024/07/StormPetrel-Calculator-Test-01.png)
- Framework Support
Enhanced compatibility with leading test frameworks including XUnit, NUnit, and MSTest.
- Variable Pair Configuration
Flexible configuration options for actual/expected variable pairs, accommodating multiple sets.
- Customizable Algorithms
Provision for custom or configurable algorithms to generate or dump expected baselines, leveraging the Storm Petrel test execution context.
- Baseline Instantiation
Comprehensive support for expected baselines instantiated within the test method or sourced from external methods with variable arguments.
Manual
Step 1: Modify Your Tests
- Add StormPetrel NuGet package to your unit or integration tests project to enable Storm Petrel to generate modified test copies.
- Make optional StormPetrel configuration of the project.
- This will trigger the .NET Incremental Generators to create the modified "StormPetrel" test copies.
Step 2: Generate Modified Test Copies
- Execute the generated "StormPetrel" test copies to capture the actual baselines and convert them to C# code.
- The captured baselines will be converted to C# code using the VarDump package or ObjectDumper.NET package, or using your custom converter.
- The tool will automatically overwrite the expected baselines in the original tests or other specified files.
Step 3: Review the Changes
- Manually review the updated baselines to ensure accuracy.
- Make any necessary adjustments to the tests or baselines as needed
Customization
SCAND offers a complete range of software development services. We’ve developed software for numerous businesses and would love to work with you too. Just submit your request, and we'll swiftly get in touch to go over details.
Want to be the first to get a download link for our product?
Related Products
![products-icon__1 products-icon__1](https://scand.com/wp-content/uploads/2019/08/products-icon__1.png)
Outlook4Gmail
Wingle is a work management software created to boost the organizational performance of any company or individual business.
WinGPG
WinGPG is a tray-based classical Windows application, Windows NT Explorer shell extension, and a classic GPGv2 distribution.
Scrypto Wallet
Scrypto Wallet is a ready-made solution for companies to provide an excellent cryptocurrency experience. It allows users to create and manage wallets on various popular blockchains and crypto networks.