Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generating trx with classname and name as none #14

Open
puagarwa opened this issue May 14, 2019 · 3 comments
Open

generating trx with classname and name as none #14

puagarwa opened this issue May 14, 2019 · 3 comments

Comments

@puagarwa
Copy link

The tool is generating in trx file with partial information, It always fill test method classname and name property as none which leads to incorrect publishing on vsts because these two fields are mandatory field to correctly identify a test method.


<TestMethod codeBase="out/test/api.test.js" className="none" name="none"/>

There is issue filed on azure-pipeline repo for this issue here is the link microsoft/azure-pipelines-tasks#10024

@pmoleri
Copy link
Contributor

pmoleri commented May 14, 2019

Hi @puagarwa , we only use this reporter with TFS 2015 and shows the summary in CI builds just fine.
I think that when defining tests in Mocha, you don't have ClassName. What would you suggest to show there?
Can you send us a test example and its expected output?
Thanks.

@AbhishekSinha-AEP
Copy link

@pmoleri was there any resolution for this classname as none
Also can we know where is this classname picked from mocha, so we can have a resolution

@pmoleri
Copy link
Contributor

pmoleri commented Nov 14, 2022

@AbhishekSinha-AEP no resolution so far.
As I said in my last comment, it was working fine for older servers.
We're haven't use this package in newer servers or Azure pipelines, so we haven't hit this issue yet.

If you can try manually editing your .trx file until you get the expected result, we can see if it can be considered in the code.
Otherwise, as per the linked issue, Microsoft's recommendation is to generate junit instead of .trx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants