178 questions
0
votes
0
answers
5
views
Test explorer missing single test iterations when path to data is changed
When i use this combination for reaching to .csv file with test data,
`
[PictCsvDataSource(
typeof(ActivePartDataRow),
"..\\..\\UITestsResources\\AngieIntegration\\ActivePart\\ActivePart\\...
1
vote
0
answers
27
views
How to see Google test output from a remote machine in the test explorer instead of the terminal in VSCode
Currently I am able to run Google-Tests in VSCode and see the results in terminal panel. I want to know how, if at all, can I see those results in the test-explorer?
In my current setup on Ubuntu-20....
0
votes
0
answers
111
views
VS code test explorer keeps running after test end
I'm using VS code with playwright to build a TAS. I have found VS code's test explorer tool ver useful. However after recently updating VS code, the test explorer has broken.
After all my tests have ...
0
votes
1
answer
75
views
Exporting Test results from Test Explorer Window in Visual Studio 2022
Is there a way to export the test results that appear in the Test Explorer Window? I know a test results file is created for each test run, but the test explorer window gives me a full picture (for ...
2
votes
2
answers
95
views
.NET Core xUnit Test output messages show up as Warnings on test explorer in VS 2022
On .NET Core 8 with xUnit (Abstractions version 2.0) when we write test output to the TestOutputHelper, every line that's written to the output - see screenshot (1) - counts as a "Warning", ...
0
votes
1
answer
36
views
SpecFlow test execution order in VS Test Explorer
In my feature file I have 1 scenario outline with two examples that creates two teams. These teams are preconditions to two other scenarios: one deletes the empty team and one adds a user to a team. ...
0
votes
1
answer
98
views
C# Dev Kit - dotnet Test Explorer - No such File
I am relatively new to dotnet development. I am setting us my VSCode environment and attempting to use the C# Dev Kit to run tests within a project I am in. The project can run dotnet restore/test etc,...
1
vote
0
answers
19
views
VS Test Explorer allways starts discovering tests using standard testadapter
I've written a testadapter by implementing ITestExecutor and ITestDiscoverer:
public class MyDiscoverer : ITestDiscoverer
{
public void DiscoverTests(IEnumerable<string> sources, ...
1
vote
1
answer
33
views
What does the animated bar in Visual Studio Test Explorer indicate?
In Visual Studio's Test Explorer window, there is a an animated bar that moves left to right. What does this indicate? Intuitively it feels like it should be indicating that tests are running, but ...
0
votes
0
answers
76
views
Dotnet-test-explorer Path For Result File | Not Creating a File
I have a C# project in Visual Studio Code.
I was experimenting with the following configuration setting for the .NET Core Test Explorer (version v0.7.8):
I ran a test from the Test Explorer.
Results ...
0
votes
1
answer
115
views
How to identify unasscoiated NUnit tests from Azure Test Plans test cases?
Is there a way to identify which NUnit tests are not associated with a test case from within Test Explorer in Visual Studio?
I want to identify new tests that have been added by the team and ensure ...
0
votes
1
answer
604
views
VScode Mocha Test Explorer: Worker Error: No test files found: {}
Trying to load/run tests from VScode with Mocha Test Explorer, but it fails with a mocha error while loading my tests.
I added this to settings.json
"mochaExplorer.mochaPath": "/...
0
votes
1
answer
748
views
VS Code [angular] karma test debug breakpoints only work once or twice without restarting VS code
I have been using VS code to debug my Angular jasmine karma tests for a while but I have always had a problem whereby after debugging a test several times the breakpoints stop working. I have to ...
1
vote
2
answers
348
views
TestExplorer missing single test data entries when using DynamicData with complex types
When I use the [DynamicData] attribute to provide an enumeration of primitve values, e.g. int, then the Visual Studio Test Explorer shows one test for each value provided via dynamic data:
public ...
8
votes
2
answers
4k
views
Visual Studio 2022 - Test Explorer says Test run finished but tests are not executed
I am upgrading to VS2022 from VS2019. We had some 1000+ test cases already written which we are able to execute on VS2017 and VS2019 but when I open the project in VS2022, test cases do not run. It ...
0
votes
0
answers
88
views
How do you define a conditional inline menu contribution point for a Test Explorer view?
I'm working on a VS Code extension that leverages the Text Explorer view. Tests are added to the list, and a standard set of inline menu commands exist for each test. I'm trying to change this so that ...
0
votes
2
answers
390
views
Tests are not updated in Visual Studio Test Explorer
Test output source within the Output tool window displays
Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Could not find testhost
and the list of tests in the Test Explorer ...
0
votes
1
answer
104
views
Is it possible to pass MSBuild's property in Visual Studio's test explorer?
I know I could do something like this:
dotnet test myproject.csproj /p:IsTest=true
and in myproject.csproj:
<PropertyGroup>
...
<DefineConstants Condition=" '$(IsTest)' == '...
0
votes
0
answers
200
views
.net test explorer just run one of many test projects i have in solution file in vscode
I have a solution file with many test projects. I use vscode so i install the .net test explorer extension. The extension find all my tests in the explorer but when i try to run, just the test in of ...
0
votes
1
answer
66
views
How to view the comment from specflow test case in visual studio test explorer's test log?
Is there any way to view the tags and comments added in the Specflow's feature file in the Visual Studio Test Explorer's test log output?
I can see the test log output from test explorer by right-...
2
votes
2
answers
351
views
How to correctly jump to source from PyCharm pytest test explorer?
I tried to jump to a file shown in pytest text explorer by double clicking on the name of a test function in the tree view of the test explorer (I use PyCharm 2023.1.1, Community Edition):
However, ...
21
votes
4
answers
7k
views
Visual Studio Test Explorer doesn't run tests after changes
I am using Visual Studio 2022 Community Edition. Whenever I delete or rename existing test methods (including copy, paste, then rename), Visual Studio fails to run tests after the changes are made.
I ...
3
votes
3
answers
2k
views
Visual Studio Professional 2022 17.4.0 will not discover tests in test explorer
After updating to 17.4.0 I can not discover tests in test explorer. Is anyone else experiencing this?
The output I see in test explorer after selecting run all tests is "test discovery finished: ...
0
votes
2
answers
1k
views
How to change Working Directory when running unit test from Visual Studio Test Explorer
For my new project, I installed Visual Studio 2022, when my co-workers are still using Visual Studio 2019.
Most of the tests are failing on my computer, and after a bit of troubleshooting, I found out ...
1
vote
0
answers
3k
views
VS Code Test Explorer can't find tests
We must test a new feature before pushing it to production. For some reason we can't access our tests with Visual Studio Code (it must be VS Code).
I found this thread (which didn't help me) NXunit ...
13
votes
1
answer
21k
views
VS Code - Test Explorer no longer showing any tests. Error: "Cannot read properties of null"
What's Not working
At some point, the lists of tests that used to show up in Test Explorer are now no longer appearing. When I try to refresh the list, I get an error that the system is encountering a ...
7
votes
1
answer
3k
views
How to show Console.WriteLine (Standard Output ) in Test Detail Summary in Visual Studio 2022
I updated to Visual Studio 2022 recently (currently on version 17.1.6 on Windows 10) which has as a feature that it will show Standard Output or Console.WriteLine output in the Test Detail Summary. ...
0
votes
1
answer
1k
views
In Visual Studio 2019, What Command is Run When 'Test All' is Clicked?
Visual Studio 2019 (and most Visual Studios that I've worked with that have a Test Explorer) have a 'Test All' button.
I'm curious as to what the CLI-equivalent command is run when this is clicked (...
1
vote
3
answers
1k
views
Test tree disappears from Test Explorer window, once I run them (VS2022)
I have this weird behaviour in VS 2022, that once the tests are run in the Test Explorer window, the whole test tree disappears. It works fine for all my coworkers, but not on my machine. The tests ...
1
vote
1
answer
754
views
Debug vstest adapter
I'd like to debug my own vstest Adapter.
I'm working on integrating of my own test framework/case into VS 2022. Currently, my adapter work on Test Explorer that I can see my dummy case on it. But, I ...
3
votes
1
answer
3k
views
VSCode Test Explorer Pytest Inject Environment Variables using AWS Parameter Store
I am currently Using Pytest though the Python Test Explorer (see screen). I would like to pass my tests some environment variables at runtime. However, I currently get my AWS Parameter Store BEFORE I ...
1
vote
0
answers
991
views
VSCode test explorer displays nothing
I recently uninstalled Test Explorer UI extension in VSCode. After I installed it back on, the extension panel displays nothing. I performed the installation again several times with the same result:
...
1
vote
1
answer
731
views
Python tests in more than one file in Visual Studio Code
I'm using unittest library to run some tests for a Python/Django application, using Visual Studio Code. They work just fine. The only issue is that I have the tests located in more than one file, and ...
1
vote
1
answer
803
views
Is it possible to use Visual Studio 2022 Test Explorer to run C unit test?
I would like to run ansi C unit tests in VS by mean of Test Explorer (not only with Console).
I saw that it's possible for C++ projects (https://learn.microsoft.com/it-it/visualstudio/test/writing-...
1
vote
1
answer
158
views
.NET Test Explorer tree keeps spinning forever with Selenium Chrome WebDriver
Only when using Selenium WebDrive and if the Chrome is opened as per the following code:
IWebDriver driver;
driver = new ChromeDriver();
then, the progress indicator on the test tree will keep on ...
2
votes
0
answers
376
views
Is there a way to find out which unit test has thrown a stack overflow exception
I have a project with more than a thousand unit tests. When I run all unit tests, the execution fails with the following message on the test output:
Process is terminated due to StackOverflowException....
0
votes
1
answer
405
views
Unit tests grouping "Project, NameSpace, Class" being demolished by dots from TestCase.TestName
I do use Test-Explorer and find comfortable the view where unit tests are grouped by "Project, NameSpace, Class". It also does work well with parameterized tests, where I can also use a ...
2
votes
0
answers
451
views
VS - Test Detail Summary Standard Output
I just updated Visual studio from 16.8.2 to the newest version. After running a test, Test Detail Summary got "Standard output" section which wasn't there before. My problem is that this ...
0
votes
1
answer
56
views
No tests discovered in Visual Studio with error "The SVsFileChangeEx service is unavailable"
What to do, if I don't see my xUnit tests discovered in the Test Explorer panel, and the Tests tab in the Output toolbox contains the error: "The SVsFileChangeEx service is unavailable".
3
votes
1
answer
2k
views
How to set path at test discovery in visual studio?
How can I set the path to my external binaries during test discovery in visual studio's Test Explorer? After that how to make sure, it uses the correct paths?
I use windows 10 and VS 2019. I have a ...
2
votes
1
answer
788
views
PHPUnit Test Explorer with Xdebug - VSCode
I have recently installed Test Explorer UI for VSCode. I intend to use it with PHPUnit.
However, I do not see the debug symbol against my test. Also, the debugger points on my test file are never hit.
...
3
votes
0
answers
815
views
How to organize SpecFlow tests and features in Test Explorer tree
I am using SpecFlow with C#, Visual Studio 2019.
I have a test project with some 1.000+ tests. These tests are grouped in some 100 feature files.
In the Test Explorer tree, all features are grouped ...
0
votes
0
answers
139
views
Theory test iterations with none constant type parameters don't show as separate iterations in the Test Explorer
I have been writing unit tests in an xUnit project for a .NET project. Because I had a lot of combinations of parameters for the same test (3000+) I decided to use the [ClassData(typeof(...
0
votes
0
answers
565
views
Import Error while importing test module in VScode
In my VScode I have the attached image folder structure and when I am trying to run any test it says Import error while importing test module enter image description here
I my settings.json file I ...
14
votes
1
answer
6k
views
Why is VIsual Explorer test explorer slow to start unit tests?
Visual Studio 2019 takes several minutes to START running unit test.
This is a big (>300 projects) .NET Framework x86 Solution.
Tests run immediately when executed from console.
Tests take a ...
0
votes
1
answer
663
views
Visual Studio 2019 unit tests missing in test explorer but show in live unit testing
I have a solution with about 3000 unit tests. The test appear and run under the "Live Unit Testing" window but under the "Test Explorer" none appear. They USED to but suddenly ...
0
votes
2
answers
265
views
Can I associate an automated test case to a Testcase workitem from a different Collection in Azure DevOps?
I have two collections in my Azure DevOps server.
CollectionA contains a repository with automated test cases, CollectionB is where my test case work items are.
My goal is to associate automated ...
2
votes
1
answer
640
views
Go To Test (F12) doesn't work in Test Explorer in Visual Studio
When I click on Go To Test or use F12, nothing happens. This happens for SpecFlow tests in VS2019. This is an issue because it is difficult to manually find the test in the *.feature file.
Is there ...
2
votes
1
answer
437
views
Visual Studio Test Explorer Icons
I've searched around and can't seem to find any reference to the light icon with the green check.
This FAQ only shows the solid green with white check version.
The test output seems to be the same as ...
3
votes
0
answers
515
views
Overriding dispose method in multiple child classes
I am currently using Xunit to write some integration testing in my .NET Core project. As part of this, I am setting up the data and other information before running a test in my custom class.
using ...