-
Notifications
You must be signed in to change notification settings - Fork 6
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
Don't include a file called .htmlvalidate.json by default (OSOE-844) #359
Comments
Is the linked configuration a suitable workaround for you now? I.e., is this only about making configuration more convenient, or do we lack some functionality?
|
Actually no. Now the Linux run is broken that previously worked. 🫠
Oof, I pasted without thinking. Anyway, here it is: |
Please work on this if it's blocking for you. OK, indeed we can use |
Following up from OrchardCMS/OrchardCore.Commerce#434, also include here the following:
|
Hmm, we can actually set the timeout of async tests in xUnit directly: https://www.reddit.com/r/csharp/comments/zlulro/did_you_know_you_could_set_a_timeout_in_your/ So, I don't think we need a custom config, unless we can do a timeout that excludes waiting for the setup operation (that may be started by another test). However, that might work with the latest xUnit only, what I've updated to under #355. |
Unless I misunderstood this is opt-in, so you'd have to add the |
Yeah. |
Right now we include .htmlvalidate.json in the project csproj file. This means if you place your own .htmlvalidate.json file in a project that references the NuGet package, it won't be enough. You also have to remove the import from the package first. This is not intuitive and as far as I can see it's not documented either.
Instead, I suggest renaming it to something like default.htmlvalidate.json and including a
HtmlValidationOptions
out of the box that uses .htmlvalidate.json if the file exists and default.htmlvalidate.json if it's missing.Also I suggest including
"form-dup-name": "off"
in the default file, because we we have to turn that rule off for every project that uses boolean fields or just stock ASP.NET Core checkbox tag helpers because it expands into stuff like this:Also backport this into UITT.
Jira issue
The text was updated successfully, but these errors were encountered: