Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/Targets.fs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ let private runTests (testSuite: TestSuite) _ =
let testFilter =
match testSuite with
| All -> []
| Unit -> ["--filter"; "FullyQualifiedName~.Tests"]
| Unit -> ["--filter"; "FullyQualifiedName~.Tests|FullyQualifiedName~AuthoringTests"]
| Integration -> ["--filter"; "FullyQualifiedName~.IntegrationTests"]

exec {
Expand Down
2 changes: 1 addition & 1 deletion tests/authoring/Applicability/ApplicableToComponent.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``product availability``.``applicable to component``
module ``AuthoringTests``.``product availability``.``applicable to component``

open Elastic.Documentation.AppliesTo
open Elastic.Markdown.Myst.Directives.AppliesTo
Expand Down
2 changes: 1 addition & 1 deletion tests/authoring/Applicability/AppliesToDirective.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``product availability``.``yaml directive``
module ``AuthoringTests``.``product availability``.``yaml directive``

open Elastic.Documentation.AppliesTo
open Elastic.Markdown.Myst.Directives.AppliesTo
Expand Down
2 changes: 1 addition & 1 deletion tests/authoring/Applicability/AppliesToFrontMatter.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``product availability``.``yaml frontmatter``
module ``AuthoringTests``.``product availability``.``yaml frontmatter``

open Elastic.Documentation.AppliesTo
open JetBrains.Annotations
Expand Down
2 changes: 1 addition & 1 deletion tests/authoring/Blocks/Admonitions.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information
module ``block elements``.``admonition elements``
module ``AuthoringTests``.``block elements``.``admonition elements``

open Xunit
open authoring
Expand Down
2 changes: 1 addition & 1 deletion tests/authoring/Blocks/CodeBlocks/CodeBlocks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``block elements``.``code blocks``
module ``AuthoringTests``.``block elements``.``code blocks``

open Elastic.Markdown.Myst.CodeBlocks
open Swensen.Unquote
Expand Down
2 changes: 1 addition & 1 deletion tests/authoring/Blocks/ImageBlocks.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information
module ``block elements``.``image blocks``
module ``AuthoringTests``.``block elements``.``image blocks``

open Xunit
open authoring
Expand Down
2 changes: 1 addition & 1 deletion tests/authoring/Blocks/Lists.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information
module ``block elements``.``list elements``
module ``AuthoringTests``.``block elements``.``list elements``

open Xunit
open authoring
Expand Down
2 changes: 1 addition & 1 deletion tests/authoring/Container/DefinitionLists.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``container elements``.``vertical definition lists``
module ``AuthoringTests``.``container elements``.``vertical definition lists``

open Xunit
open authoring
Expand Down
2 changes: 1 addition & 1 deletion tests/authoring/Directives/IncludeBlocks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``directive elements``.``include directive``
module ``AuthoringTests``.``directive elements``.``include directive``

open Swensen.Unquote
open Xunit
Expand Down
3 changes: 2 additions & 1 deletion tests/authoring/Framework/MarkdownDocumentAssertions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@
let actual = actual.Value
let result = actual.MarkdownResults |> Seq.find (fun r -> r.File.RelativePath = "index.md")
let matter = result.File.YamlFrontMatter
matter.AppliesTo.Diagnostics <- expectedAvailability.Diagnostics
match matter with
| NonNull m ->
if expectedAvailability <> null then

Check warning on line 36 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Nullness warning: The type 'ApplicableTo' does not support 'null'.

Check warning on line 36 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Nullness warning: The type 'ApplicableTo' does not support 'null'.

Check warning on line 36 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / integration

Nullness warning: The type 'ApplicableTo' does not support 'null'.

Check warning on line 36 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / integration

Nullness warning: The type 'ApplicableTo' does not support 'null'.

Check warning on line 36 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Nullness warning: The type 'ApplicableTo' does not support 'null'.

Check warning on line 36 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Nullness warning: The type 'ApplicableTo' does not support 'null'.

Check warning on line 36 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (macos-latest)

Nullness warning: The type 'ApplicableTo' does not support 'null'.

Check warning on line 36 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (macos-latest)

Nullness warning: The type 'ApplicableTo' does not support 'null'.
m.AppliesTo.Diagnostics <- expectedAvailability.Diagnostics

Check warning on line 37 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Nullness warning: The types 'ApplicableTo' and 'ApplicableTo | null' do not have compatible nullability.

Check warning on line 37 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Nullness warning: The types 'ApplicableTo' and 'ApplicableTo | null' do not have compatible nullability.

Check warning on line 37 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Nullness warning: The types 'ApplicableTo' and 'ApplicableTo | null' do not have compatible nullability.

Check warning on line 37 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Nullness warning: The types 'ApplicableTo' and 'ApplicableTo | null' do not have compatible nullability.

Check warning on line 37 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / integration

Nullness warning: The types 'ApplicableTo' and 'ApplicableTo | null' do not have compatible nullability.

Check warning on line 37 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / integration

Nullness warning: The types 'ApplicableTo' and 'ApplicableTo | null' do not have compatible nullability.

Check warning on line 37 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / integration

Nullness warning: The types 'ApplicableTo' and 'ApplicableTo | null' do not have compatible nullability.

Check warning on line 37 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / integration

Nullness warning: The types 'ApplicableTo' and 'ApplicableTo | null' do not have compatible nullability.

Check warning on line 37 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Nullness warning: The types 'ApplicableTo' and 'ApplicableTo | null' do not have compatible nullability.

Check warning on line 37 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Nullness warning: The types 'ApplicableTo' and 'ApplicableTo | null' do not have compatible nullability.

Check warning on line 37 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Nullness warning: The types 'ApplicableTo' and 'ApplicableTo | null' do not have compatible nullability.

Check warning on line 37 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (windows-latest)

Nullness warning: The types 'ApplicableTo' and 'ApplicableTo | null' do not have compatible nullability.

Check warning on line 37 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (macos-latest)

Nullness warning: The types 'ApplicableTo' and 'ApplicableTo | null' do not have compatible nullability.

Check warning on line 37 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (macos-latest)

Nullness warning: The types 'ApplicableTo' and 'ApplicableTo | null' do not have compatible nullability.

Check warning on line 37 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (macos-latest)

Nullness warning: The types 'ApplicableTo' and 'ApplicableTo | null' do not have compatible nullability.

Check warning on line 37 in tests/authoring/Framework/MarkdownDocumentAssertions.fs

View workflow job for this annotation

GitHub Actions / build (macos-latest)

Nullness warning: The types 'ApplicableTo' and 'ApplicableTo | null' do not have compatible nullability.
let apply = m.AppliesTo
test <@ apply = expectedAvailability @>
| _ -> failwithf "%s has no yamlfront matter" result.File.RelativePath
Expand Down
2 changes: 1 addition & 1 deletion tests/authoring/Generator/LinkReferenceFile.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``documentation generator``.``links json artifact``
module ``AuthoringTests``.``documentation generator``.``links json artifact``

open Xunit
open authoring
Expand Down
2 changes: 1 addition & 1 deletion tests/authoring/Inline/AppliesToRole.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``inline elements``.``applies_to role``
module ``AuthoringTests``.``inline elements``.``applies_to role``

open Elastic.Documentation.AppliesTo
open Elastic.Markdown.Myst.Roles.AppliesTo
Expand Down
3 changes: 1 addition & 2 deletions tests/authoring/Inline/Comments.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``inline elements``.``comment block``
module ``AuthoringTests``.``inline elements``.``comment block``

open Xunit
open authoring
Expand All @@ -17,4 +17,3 @@ not a comment
[<Fact>]
let ``validate HTML: commented line should not be emitted`` () =
markdown |> convertsToHtml """<p>not a comment</p>"""

4 changes: 2 additions & 2 deletions tests/authoring/Inline/CrossLinkRedirectAnchors.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``inline elements``.``complex anchors``
module ``AuthoringTests``.``inline elements``.``complex anchors``

open Xunit
open authoring.CrossLinkResolverAssertions
Expand Down Expand Up @@ -82,4 +82,4 @@ type ``Scenario 2: complex redirect mapping with anchor passing for fallback red
let ``topic-b-config redirects to topic-b-subpage and drops anchor (null target)``() =
resolvesTo
"docs-content://testing/redirects/multi-topic-page-2-old.md#topic-b-config"
"/testing/redirects/multi-topic-page-2-new-topic-b-subpage"
"/testing/redirects/multi-topic-page-2-new-topic-b-subpage"
4 changes: 2 additions & 2 deletions tests/authoring/Inline/CrossLinks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``inline elements``.``cross links``
module ``AuthoringTests``.``inline elements``.``cross links``

open Xunit
open authoring
Expand Down Expand Up @@ -143,4 +143,4 @@ type ``link to repository that does not resolve yet using double slashes`` () =
let ``error when not found in links.json`` () = markdown |> hasError("'elasticsearch' was not found in the cross link index")

[<Fact>]
let ``has no warning`` () = markdown |> hasNoWarnings
let ``has no warning`` () = markdown |> hasNoWarnings
3 changes: 1 addition & 2 deletions tests/authoring/Inline/CrossLinksRedirects.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``inline elements``.``cross links redirects``
module ``AuthoringTests``.``inline elements``.``cross links redirects``

open Xunit
open authoring
Expand Down Expand Up @@ -164,4 +164,3 @@ type ``Scenario 5: Deleting an entire page`` () =
markdown |> convertsToHtml $"""
<p><a href="{urlPrefix}/">Scenario 5</a></p>
"""

2 changes: 1 addition & 1 deletion tests/authoring/Inline/InlineAnchors.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``inline elements``.``anchors DEPRECATED``
module ``AuthoringTests``.``inline elements``.``anchors DEPRECATED``

open Elastic.Markdown.Myst.InlineParsers
open Markdig.Syntax
Expand Down
2 changes: 1 addition & 1 deletion tests/authoring/Inline/InlineAppliesTo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``inline elements``.``image``
module ``AuthoringTests``.``inline elements``.``image``

open Xunit
open authoring
Expand Down
2 changes: 1 addition & 1 deletion tests/authoring/Inline/InlineLinks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``inline elements``.``links``
module ``AuthoringTests``.``inline elements``.``links``

open Xunit
open authoring
Expand Down
2 changes: 1 addition & 1 deletion tests/authoring/Inline/KbdRole.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``inline elements``.``kbd role``
module ``AuthoringTests``.``inline elements``.``kbd role``

open Xunit
open authoring
Expand Down
4 changes: 1 addition & 3 deletions tests/authoring/Inline/RelativeLinks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``inline elements``.``relative links``
module ``AuthoringTests``.``inline elements``.``relative links``

open Xunit
open authoring
Expand Down Expand Up @@ -54,5 +54,3 @@ Through various means $$$including-this-inline-syntax$$$

[<Fact>]
let ``has no errors`` () = generator |> hasNoErrors


2 changes: 1 addition & 1 deletion tests/authoring/Inline/SubstitutionMutations.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``inline elements``.``substitution mutations``
module ``AuthoringTests``.``inline elements``.``substitution mutations``

open Xunit
open authoring
Expand Down
2 changes: 1 addition & 1 deletion tests/authoring/Inline/Substitutions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``inline elements``.``substitutions``
module ``AuthoringTests``.``inline elements``.``substitutions``

open Xunit
open authoring
Expand Down
2 changes: 1 addition & 1 deletion tests/authoring/Linters/WhiteSpaceNormalizers.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``linters``.``white space normalizers``
module ``AuthoringTests``.``linters``.``white space normalizers``

open Xunit
open authoring
Expand Down
2 changes: 1 addition & 1 deletion tests/authoring/LlmMarkdown/LlmMarkdownOutput.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

module ``llm markdown``.``output tests``
module ``AuthoringTests``.``llm markdown``.``output tests``

open Swensen.Unquote
open Xunit
Expand Down
Loading