-
Notifications
You must be signed in to change notification settings - Fork 572
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
xunitv3 #7924
xunitv3 #7924
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 36 out of 36 changed files in this pull request and generated no comments.
src/Aspire.ProjectTemplates/templates/aspire-starter/.template.config/template.json
Outdated
Show resolved
Hide resolved
...spire-starter/9.2/Aspire-StarterApplication.1.Tests/Aspire-StarterApplication.1.Tests.csproj
Outdated
Show resolved
Hide resolved
src/Aspire.ProjectTemplates/templates/aspire-starter/.template.config/template.json
Outdated
Show resolved
Hide resolved
src/Aspire.ProjectTemplates/templates/aspire-starter/.template.config/template.json
Outdated
Show resolved
Hide resolved
src/Aspire.ProjectTemplates/templates/aspire-starter/.template.config/template.json
Outdated
Show resolved
Hide resolved
src/Aspire.ProjectTemplates/templates/aspire-starter/.template.config/template.json
Outdated
Show resolved
Hide resolved
src/Aspire.ProjectTemplates/templates/aspire-starter/.template.config/template.json
Show resolved
Hide resolved
src/Aspire.ProjectTemplates/templates/aspire-xunit/.template.config/template.json
Outdated
Show resolved
Hide resolved
src/Aspire.ProjectTemplates/templates/aspire-xunit/.template.config/template.json
Outdated
Show resolved
Hide resolved
src/Aspire.ProjectTemplates/templates/aspire-xunit/.template.config/template.json
Outdated
Show resolved
Hide resolved
src/Aspire.ProjectTemplates/templates/aspire-xunit/.template.config/template.json
Show resolved
Hide resolved
…onfig/template.json Co-authored-by: Damian Edwards <[email protected]>
…onfig/template.json Co-authored-by: Damian Edwards <[email protected]>
…onfig/template.json Co-authored-by: Damian Edwards <[email protected]>
….config/template.json Co-authored-by: Damian Edwards <[email protected]>
….config/template.json Co-authored-by: Damian Edwards <[email protected]>
….config/template.json Co-authored-by: Damian Edwards <[email protected]>
….config/template.json Co-authored-by: Damian Edwards <[email protected]>
@danmoseley can you drop a screenshot of the new options showing up in VS? |
@DamianEdwards everything works now. |
"description": "The version of xUnit.net to use.", | ||
"displayName": "xUnit.net version", | ||
"datatype": "choice", | ||
"isEnabled": "(TestFramework == xUnit.net)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'xunit.net' causes VS to crash. So template engine does not want quotes here, but does require them in the csproj.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@phenning thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danmoseley to be clear the templates are working now right? This option is only visible in VS when xUnit.net is the selected testing framework?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you attach a debugger and get a stack to see where the crash is coming from, or see if there is anything in the activity log?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I opened issue linked below with stack. Incidentally the exception message (which isn't shown to the user) has a typo in it. I think it was something like "invalid chrcter" or similar.
LMK if you need more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DamianEdwards yes all this works, since I removed those single quotes. This should be good to merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This option is only visible in VS when xUnit.net is the selected testing framework?
Oh, I misunderstood. Let me double check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it doesn't - sorry. @phenning would you be able to tell me why the condition on this line (in its non crashing form) does not work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, we tracked this down to a bug in the VS template engine- either it didn't work, or it crashes--
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2417642
To work around it, I've renamed some identifiers. Identifiers in some cases can't be substrings of other identifiers, until this is fixed.. @DamianEdwards fyi.
...re.ProjectTemplates/templates/aspire-xunit/.template.config/localize/templatestrings.cs.json
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
this now seems to work as expected. |
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #7225
Checklist
<remarks />
and<code />
elements on your triple slash comments?breaking-change
template):doc-idea
template):