Coder Social home page Coder Social logo

Comments (5)

juan-fernandez avatar juan-fernandez commented on June 12, 2024 1

I've pushed #4128 to grab the displayName config and attach it to a tag that you can use to group by / filter 😄.

If a "test session" is a single invocation of jest, then it might be trickier to do in a hierarchical way 🤔

Can you think of a different way to do it? I'm interested in hearing your feedback

from dd-trace-js.

abejfehr avatar abejfehr commented on June 12, 2024 1

Sorry that I didn't get a chance to test yet 😅 thank you so much for the PR, I appreciate your responsiveness

from dd-trace-js.

juan-fernandez avatar juan-fernandez commented on June 12, 2024

hey @abejfehr ! Thanks for posting this, it's a great piece of feedback.

In your example, as far as I understand, jest will not run the all the tests in package-a before starting with package-b: this makes it hard to group tests in each package in any meaningful way, as tests for every package will be scattered across the whole test session (=test command).

This said, I think adding the displayName as metadata in the test and test suites is low hanging fruit and it's something we should definitely do.

It would be nice to see how long monorepo -> package-a takes vs monorepo -> package-b

Given how jest runs tests in different packages (as I explain above), can you think of a way we could do this? I might be missing something (or wrong about something) and this is a feature that I think would be valuable.

from dd-trace-js.

abejfehr avatar abejfehr commented on June 12, 2024

If a "test session" is a single invocation of jest, then it might be trickier to do in a hierarchical way 🤔

In any case, having displayName as a custom field would be kind of nice for grouping runs by packages that ran

Edit: Ironically, we don't currently set displayName it's just something I saw in Jest's config that might make this easier and I'd be happy to add it to our configs

from dd-trace-js.

juan-fernandez avatar juan-fernandez commented on June 12, 2024

@abejfehr after the next release you'll be able to use test.jest.display_name tag to grab whatever you have configured in displayName 😄

from dd-trace-js.

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.