Git Product home page Git Product logo

Comments (3)

NimaSoroush avatar NimaSoroush commented on June 2, 2024

Hi @mariyan-dimitrov : If I understood your use case well, you want to override the existing prefix in differencify and instead providing your own test names which you can use it against an array of test. If that is the case, you can provide testName as an option. https://github.com/NimaSoroush/differencify#testoptions

Forexample: https://github.com/NimaSoroush/differencify/blob/master/API.md#simple-unchained

Hope this helps

from differencify.

mariyan-dimitrov avatar mariyan-dimitrov commented on June 2, 2024

Hi @NimaSoroush,
I don't think you understood me correctly. My current case is that I'm trying to run 5 tests at the same time. Meanwhile I'm providing unique testName for each of these test (ex. "unique_test_name_1", "unique_test_name_2", ... ), but then again, the differencify appends another index to these names like:
-> "unique_test_name_1 1.snap", "unique_test_name_2 2.snap"...
-> "unique_test_name_1 1.differencify.snap", "unique_test_name_2 2.differencify.snap" ...
-> "unique_test_name_1 1.current.snap" , "unique_test_name_2 2.current.snap" ...
I want to remove the second index ( unique_test_name_1 1.current.snap ) which is coming from Differencify.
Is there any way to do that without renaming the file after it's created by the library?

from differencify.

NimaSoroush avatar NimaSoroush commented on June 2, 2024

Hey @mariyan-dimitrov , Thanks for clarifying the issue. I misunderstood it initially. The short answer is that, it is not possible to remove the test name postfix with the current implementation. But it is fairly easy to implement that. Feel free to raise a PR for it

from differencify.

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.