Open agadekar opened 1 year ago
Also, logs added using https://learn.microsoft.com/en-us/windows-hardware/drivers/taef/wexlogger do not get captured in TestResultMessage
. Is there a way to do that?
Hi @agadekar,
I tried this in small repo with mstest v3.0.2 and the `classcleanup' is called after the two methods.
so please can you check what is the mstest version in your project? and if it's the latest can you send sample project? or use --diag:log.txt
and send the logs file to us? if the logs has sensitive data you can add a feedback ticket in VS and then modify it by sending the logs as privet
we are using 3.0.2v of mstest
Thanks @agadekar,
in here the problem when happens when we run the same test twice from a class has only one test and that's because in the code we check if all tests run then call the class cleanup which happens after first call to the test.
can we please add it as a feature to recognize duplicate test cases in a single run as individual test cases and run class cleanup only after all these test cases have finished running?
@engyebrahim @Evangelink I am not sure why this was moved from testfx for vstest, this looks like a problem of testfx rather than the platform.
The best solution I can think of on platform side is to select distinct tests based on IDs, but that will impose the behavior on all frameworks (admittedly we do similar thing with sources where we select unique sources).
Describe the bug
I am using VsTestConsoleWrapper api to run tests. I have added same test method twice using below code -
However the ClassCleanup method gets called immediately after the first time test method is called and does not wait for the second instance to finish. Is this expected?
Expected behavior
Actual behavior
Logs from Test Run
Additional context
Note how Class Cleanup was called at 7.20.19 before second run of TestA finished (7.21.09). Shouldn't it be called after 7.21.09?