All work on Blazorise happens directly on GitHub. All external contributors must send pull requests which will go through the review process.
To get the development and test environment set up on your local machine, you need to do the following:
- Ensure recent build of Chrome browser installed: https://www.google.com/chrome/.
- For E2E tests, install Playwright browser dependencies as described in the Testing section below.
You are now ready to build and test Blazorise:
To write a community article, go to the dedicated repository: https://github.com/Blazorise/Blazorise.Articles.
All article authoring details, structure, and submission instructions are maintained there.
- Start a command prompt and navigate to the
\Documentation\Blazorise.Docs.Serverfolder under Blazorise root. - Run command:
dotnet watch run. - Wait for build to finish and your browser will automatically be opened
Blazorise uses:
- Unit tests (xUnit + bUnit) in
Tests/Blazorise.Tests - E2E tests (Playwright + NUnit) in
Tests/Blazorise.E2E.Tests
For Playwright E2E tests:
- Build
Tests/Blazorise.E2E.Testsso the Playwright script is generated. - From
Tests/Blazorise.E2E.Tests, install Playwright dependencies:
powershell .\bin\Debug\net10.0\playwright.ps1 install --with-deps- To record and generate test code with Playwright Inspector (target: .NET C# NUnit):
powershell .\bin\Debug\net10.0\playwright.ps1 codegen http://localhost:14696- Run the
BasicTestApp.Clientdemo app when implementing E2E tests, inherit new page tests fromBlazorisePageTest, and navigate withRootUri(or useSelectTestComponentwhen applicable). - For debugging UI behavior, run tests in headed mode (for example
dotnet test -- Playwright.LaunchOptions.Headless=false), or usePWDEBUG=1andawait Page.PauseAsync();to inspect step-by-step.
For full and up-to-date Playwright guidance, see Tests\Blazorise.E2E.Tests\ReadMe.md.
We use master branch for all development and for all new features and bug fixes that are going into the ongoing milestone.
Once we finish the work for the current milestone, we will create a new support branch named rel-X.Y, where all the bug fixes will go. Also, we regularly publish our web from the latest rel-X.Y branch, so if you plan to write a blog, this is the recommended way and place to create it.
Branch naming must follow this guidelines:
dev-prefix for new features based onmasterbranchrel-prefix for fixed on existing release branch
When submitting a pull request:
- Fork the repository.
- Create a branch from
masterorrel-X.Yand give it a meaningful name (e.g.rel-{version-num}-my-awesome-new-feature) and describe the feature or fix. - Open a pull request on GitHub.
⚠️ Don't make any changes on master branch: You must always create a feature branch by following our guidelines or we will close the PR until the changes are properly organized.