Skip to content

Tagging feedback #206

@ben-foster-cko

Description

@ben-foster-cko

Hey guys,

We're looking at ways in which we can improve debugging in nspec especially for an individual example. One solution I've come up with is to extend the nspec base class with the following:

        public nspec()
        {
            _it = new ActionRegister((name, tags, action) => it[name, "debug"] = action);
        }
        
        public ActionRegister _it;

Then in the VS Code launch configuration providing the debug tag when calling dotnet run.

This is a bit of a precursor for a workshop I'm having with my team in Berlin next week as they have started putting some time into the VS Test Adaptor. One challenge with the adaptor is how to run a single example, without having to change the code like I'm doing above. Had you ever explored this? It would require each example to have some kind of identity within the context tree so that it can be identified at runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions