Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Test discovery fails when dependencies are added under net451 framework #555

Closed
kirthik opened this issue Aug 20, 2014 · 1 comment
Closed

Comments

@kirthik
Copy link
Contributor

kirthik commented Aug 20, 2014

Here is how my project.json looks

{
    "dependencies": {
        "Xunit.KRunner": "1.0.0-*"
    },
    "commands": { "test": "Xunit.KRunner" },
    "frameworks": {
        "net451": {
            "dependencies": {
                "Microsoft.Web.Administration": "7.0.0.0"
            }
        }
    }
}

I have a simple test which accesses ServerManager

        [Fact]
        public void TestHello(string data)
        {
            ServerManager server = new ServerManager();
            <more code>
        }

Test discovery fails
But if I move "Microsoft.Web.Administration": "7.0.0.0" from net451 dependencies to global dependencies section, xunit discovers the tests correctly

@glennc
Copy link
Member

glennc commented Aug 27, 2014

Right now you need to explicitly build ctrl + shift + b in order for test discovery to work.

See: #582

@glennc glennc closed this as completed Aug 27, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants