Skip to content

Tests should group hierarchically in IDE #199

@jwosty

Description

@jwosty

I could have sworn this used to work some time in the past, but Expecto tests are not grouping into the appropriate hierarchy. I am on Windows 11 using JetBrains Rider 2024.3.4 and .NET 9.0.101 (with projects targeting .NET 8).

Screenshots for reference:

Image

Expecto suite:

namespace ExpectoTestSuite
open Expecto
module Tests =
    [<Tests>]
    let tests =
        testList "Root" [
            testList "List1" [
                testCase "my test case 1" (fun () -> ())
                testCase "my test case 2" (fun () -> ())
            ]
            testList "List2" [
                testCase "my test case 1" (fun () -> ())
                testCase "my test case 2" (fun () -> ())
            ]
        ]
    

Xunit suite:

namespace MyNamespace

module MyModule1 =
    open System
    open Xunit

    [<Fact>]
    let ``My test 1`` () =
        Assert.True(true)
        
    [<Fact>]
    let ``My test 2`` () =
        Assert.True(true)
        
        
module MyModule2 =
    open System
    open Xunit

    [<Fact>]
    let ``My test 1`` () =
        Assert.True(true)
        
    [<Fact>]
    let ``My test 2`` () =
        Assert.True(true)
    

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions