-
Notifications
You must be signed in to change notification settings - Fork 16
feat(AssertionLibrary): Add assertion library choice to templates #1659
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
Open
DevTKSS
wants to merge
13
commits into
unoplatform:main
Choose a base branch
from
DevTKSS:feature/add-assertion-library-choice
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
1c3799b
feat(uiTestAssertion): Add option which assertion library should be u…
DevTKSS 123a297
chore: Update Constants file to match the uiTests one from unoapp tem…
DevTKSS bd2ae37
chore: Add GlobalUsings file from unoapp template to reduce each file…
DevTKSS fb5a162
feat(AssertionLibrary): Add option also to unoapp template and wizard
DevTKSS 00d149c
chore: Add intendation and case for unit test wanted
DevTKSS 9a5e1eb
chore: add default case and implement review suggestions
DevTKSS 7dfdb1c
Merge branch 'unoplatform:main' into feature/add-assertion-library-ch…
DevTKSS ffd4b3a
Merge branch 'main' into feature/add-assertion-library-choice
DevTKSS 78d4862
chore: Apply PR Review suggestion
DevTKSS 4aead75
Merge branch 'main' into feature/add-assertion-library-choice
DevTKSS d7100b8
chore: Update default .NET version from 9 to 10 in TemplateWizard
DevTKSS 2562129
fix: Shouldly version variable in Directory.Packages.props
DevTKSS 6283645
Merge branch 'unoplatform:main' into feature/add-assertion-library-ch…
DevTKSS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
src/Uno.Templates/content/unoapp/MyExtensionsApp.1.Tests/GlobalUsings.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,11 @@ | ||
| //+:cnd:noEmit | ||
| global using FluentAssertions; | ||
| //-:cnd:noEmit | ||
| #if useBusinessModelsNamespace | ||
| global using MyExtensionsApp._1.Models; | ||
| #endif | ||
| #if(useFluentAssertions) | ||
| global using FluentAssertions; | ||
| #endif | ||
| #if(useShouldly) | ||
| global using Shouldly; | ||
| #endif | ||
| global using NUnit.Framework; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,13 @@ | ||
| //-:cnd:noEmit | ||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Linq; | ||
| using System.Text; | ||
| using System.Threading.Tasks; | ||
| using Uno.UITest.Helpers.Queries; | ||
|
|
||
| namespace UnoUITestsLibrary; | ||
|
|
||
| public class Constants | ||
| { | ||
| public readonly static string WebAssemblyDefaultUri = "http://localhost:64555/"; | ||
| public readonly static string iOSAppName = "com.example.app"; | ||
| public readonly static string AndroidAppName = "com.example.app"; | ||
| public readonly static string iOSDeviceNameOrId = "iPad Pro (12.9-inch) (3rd generation)"; | ||
| public readonly static string WebAssemblyDefaultUri = "http://localhost:5000/"; | ||
| public readonly static string iOSAppName = "com.companyname.myextensionsapp"; | ||
| public readonly static string AndroidAppName = "com.companyname.myextensionsapp"; | ||
| public readonly static string iOSDeviceNameOrId = "iPad Pro (12.9-inch) (3rd generation)"; | ||
|
|
||
| public readonly static Platform CurrentPlatform = Platform.Browser; | ||
| public readonly static Platform CurrentPlatform = Platform.Browser; | ||
| public readonly static Browser WebAssemblyBrowser = Browser.Chrome; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| //-:cnd:noEmit | ||
| #if (useFluentAssertions) | ||
| global using FluentAssertions; | ||
| #endif | ||
| #if (useShouldly) | ||
| global using Shouldly; | ||
| #endif | ||
| global using NUnit.Framework; | ||
| global using Uno.UITest; | ||
| global using Uno.UITest.Helpers.Queries; | ||
| global using Uno.UITests.Helpers; | ||
| global using Query = System.Func<Uno.UITest.IAppQuery, Uno.UITest.IAppQuery>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.