Giter Club home page Giter Club logo

Comments (6)

mikepenz avatar mikepenz commented on May 31, 2024

Thank you for the report. There will be a small improvement to the name discovery: #125

By default the suite is not included in the name, for that please specify the suite_regex

from action-junit-report.

igagis avatar igagis commented on May 31, 2024

I have added suite_regex: '*' and now the reported test names look like:

positive_arguments_must_produce_expected_result.factorial/positive_arguments_must_produce_expected_result

See https://github.com/cppfw/tst/runs/2362134146?check_suite_focus=true

So, the test name positive_arguments_must_produce_expected_result still appears two times.

I'd expect it to look like this:

factorial.positive_arguments_must_produce_expected_result

from action-junit-report.

mikepenz avatar mikepenz commented on May 31, 2024

@igagis this happens here: https://github.com/mikepenz/action-junit-report/blob/main/src/testParser.ts#L191-L194

from action-junit-report.

mikepenz avatar mikepenz commented on May 31, 2024

What could be done is to add another condition to compare the retrieved filename and testname and if they are equal to not retain both

from action-junit-report.

igagis avatar igagis commented on May 31, 2024

Ok, so what is the intention of the code?

Is it so that in case we don't have suite (suiteName is empty), then instead of the suite name we use file name?

Then, why does in my case the pos.fileName have the same value as testcase._attributes.name?

Should the code be like this?

const title = suiteName
          ? `${suiteName}.${testcase._attributes.name}`
          : `${pos.fileName}.${testcase._attributes.name}`

from action-junit-report.

igagis avatar igagis commented on May 31, 2024

It is almost perfect now: https://github.com/cppfw/tst/runs/2400946865?check_suite_focus=true

Although, a small thing still can be improved, I have already commented on that in the PR, but I'll repeat here:

I think that dot is a bad delimiter for file and suite names, because file name can have dots itself. It is better to use slash to delimit file and suite names and dot to delimit suite and test names

from action-junit-report.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.