Run xUnit test with MSBuild
up vote
0
down vote
favorite
I've created ASP.NET we app project and then I've created a test class - this class is part of the .NET core.
I need to run the test by the console but I can't use .net core. because the app has to be compiled, etc. with MSBuild, so I have been doing some research about how to run xUnit test inside MSBuild task.
I found this https://xunit.github.io/docs/running-tests-in-msbuild#options.
So I installed xunit.runner.msbuild.net452.dll but I cannot run the test.
error : System.InvalidOperationException: Unknown test framework: could not find xunit.dll (v1) or xunit.execution.*.dll .....
Is .NET framework is compatible with xUnit?
msbuild xunit
add a comment |
up vote
0
down vote
favorite
I've created ASP.NET we app project and then I've created a test class - this class is part of the .NET core.
I need to run the test by the console but I can't use .net core. because the app has to be compiled, etc. with MSBuild, so I have been doing some research about how to run xUnit test inside MSBuild task.
I found this https://xunit.github.io/docs/running-tests-in-msbuild#options.
So I installed xunit.runner.msbuild.net452.dll but I cannot run the test.
error : System.InvalidOperationException: Unknown test framework: could not find xunit.dll (v1) or xunit.execution.*.dll .....
Is .NET framework is compatible with xUnit?
msbuild xunit
Seems like a pretty common error with a few environmental causes. What research have you done? You should share that research. At any rate, this is probably a better fit for sqa.stackexchange.com.
– jdv
Nov 7 at 16:59
i have been reading about xunit.runner.msbuild...but for the moment i am not being able to execute the tests. The last time i've luanched the msbuild command, the output was: AfterBuild: xUnit.net MSBuild Runner v2.4.1 (64-bit Desktop .NET 4.0.30319.42000). However, there is not way that i can know if the tests are done...
– Miren
Nov 8 at 8:17
Clarification to questions should be done with an edit to the question itself. Comments can be deleted.
– jdv
Nov 8 at 15:25
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I've created ASP.NET we app project and then I've created a test class - this class is part of the .NET core.
I need to run the test by the console but I can't use .net core. because the app has to be compiled, etc. with MSBuild, so I have been doing some research about how to run xUnit test inside MSBuild task.
I found this https://xunit.github.io/docs/running-tests-in-msbuild#options.
So I installed xunit.runner.msbuild.net452.dll but I cannot run the test.
error : System.InvalidOperationException: Unknown test framework: could not find xunit.dll (v1) or xunit.execution.*.dll .....
Is .NET framework is compatible with xUnit?
msbuild xunit
I've created ASP.NET we app project and then I've created a test class - this class is part of the .NET core.
I need to run the test by the console but I can't use .net core. because the app has to be compiled, etc. with MSBuild, so I have been doing some research about how to run xUnit test inside MSBuild task.
I found this https://xunit.github.io/docs/running-tests-in-msbuild#options.
So I installed xunit.runner.msbuild.net452.dll but I cannot run the test.
error : System.InvalidOperationException: Unknown test framework: could not find xunit.dll (v1) or xunit.execution.*.dll .....
Is .NET framework is compatible with xUnit?
msbuild xunit
msbuild xunit
edited Nov 7 at 18:50
user6910411
31.9k76692
31.9k76692
asked Nov 7 at 16:34
Miren
93112
93112
Seems like a pretty common error with a few environmental causes. What research have you done? You should share that research. At any rate, this is probably a better fit for sqa.stackexchange.com.
– jdv
Nov 7 at 16:59
i have been reading about xunit.runner.msbuild...but for the moment i am not being able to execute the tests. The last time i've luanched the msbuild command, the output was: AfterBuild: xUnit.net MSBuild Runner v2.4.1 (64-bit Desktop .NET 4.0.30319.42000). However, there is not way that i can know if the tests are done...
– Miren
Nov 8 at 8:17
Clarification to questions should be done with an edit to the question itself. Comments can be deleted.
– jdv
Nov 8 at 15:25
add a comment |
Seems like a pretty common error with a few environmental causes. What research have you done? You should share that research. At any rate, this is probably a better fit for sqa.stackexchange.com.
– jdv
Nov 7 at 16:59
i have been reading about xunit.runner.msbuild...but for the moment i am not being able to execute the tests. The last time i've luanched the msbuild command, the output was: AfterBuild: xUnit.net MSBuild Runner v2.4.1 (64-bit Desktop .NET 4.0.30319.42000). However, there is not way that i can know if the tests are done...
– Miren
Nov 8 at 8:17
Clarification to questions should be done with an edit to the question itself. Comments can be deleted.
– jdv
Nov 8 at 15:25
Seems like a pretty common error with a few environmental causes. What research have you done? You should share that research. At any rate, this is probably a better fit for sqa.stackexchange.com.
– jdv
Nov 7 at 16:59
Seems like a pretty common error with a few environmental causes. What research have you done? You should share that research. At any rate, this is probably a better fit for sqa.stackexchange.com.
– jdv
Nov 7 at 16:59
i have been reading about xunit.runner.msbuild...but for the moment i am not being able to execute the tests. The last time i've luanched the msbuild command, the output was: AfterBuild: xUnit.net MSBuild Runner v2.4.1 (64-bit Desktop .NET 4.0.30319.42000). However, there is not way that i can know if the tests are done...
– Miren
Nov 8 at 8:17
i have been reading about xunit.runner.msbuild...but for the moment i am not being able to execute the tests. The last time i've luanched the msbuild command, the output was: AfterBuild: xUnit.net MSBuild Runner v2.4.1 (64-bit Desktop .NET 4.0.30319.42000). However, there is not way that i can know if the tests are done...
– Miren
Nov 8 at 8:17
Clarification to questions should be done with an edit to the question itself. Comments can be deleted.
– jdv
Nov 8 at 15:25
Clarification to questions should be done with an edit to the question itself. Comments can be deleted.
– jdv
Nov 8 at 15:25
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53193821%2frun-xunit-test-with-msbuild%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Seems like a pretty common error with a few environmental causes. What research have you done? You should share that research. At any rate, this is probably a better fit for sqa.stackexchange.com.
– jdv
Nov 7 at 16:59
i have been reading about xunit.runner.msbuild...but for the moment i am not being able to execute the tests. The last time i've luanched the msbuild command, the output was: AfterBuild: xUnit.net MSBuild Runner v2.4.1 (64-bit Desktop .NET 4.0.30319.42000). However, there is not way that i can know if the tests are done...
– Miren
Nov 8 at 8:17
Clarification to questions should be done with an edit to the question itself. Comments can be deleted.
– jdv
Nov 8 at 15:25