Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests to the UI #5

Open
DavidAJohn opened this issue Mar 10, 2021 · 2 comments
Open

Add unit tests to the UI #5

DavidAJohn opened this issue Mar 10, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@DavidAJohn
Copy link
Owner

As well as needing tests in the API, there is a Blazor testing library called bUnit that could be used to add unit tests to the UI project.

You can find bUnit here.

@DavidAJohn DavidAJohn added the enhancement New feature or request label Mar 10, 2021
@DavidAJohn DavidAJohn self-assigned this Mar 10, 2021
@DavidAJohn
Copy link
Owner Author

I've been experimenting with bUnit in a separate branch (which I haven't pushed to the remote repo yet).

Carl Franklin did a really nice demo of it on BlazorTrain: https://www.youtube.com/watch?v=8So3TXW2QKU

Interestingly, Egil Hansen (the creator of bUnit) mentions in the comments on Carl's video that there is an "as yet undocumented" way to use bUnit which he has used in his Blazing Pizza project

@DavidAJohn
Copy link
Owner Author

The UI test project (using bUnit) has now been merged into the main branch.

I'm continuing to add additional unit tests to the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant