Code Monkey home page Code Monkey logo

Comments (9)

ricardofslp avatar ricardofslp commented on September 21, 2024

Hi @jwias,

We will take a look into this in the next days.
Thanks for the feedback and for helping to continue improving this tool.

We'll come back to you as soon as we can.

from dotnet-test-rerun.

ricardofslp avatar ricardofslp commented on September 21, 2024

Hi @jwias,

Initially the tests that require the test browser are not run? Is the retry that triggers them because they have the same name?

If that's so would it solve the issue if the rerun filter was something like this: (TestCategory=API & TestCategory=SmokeTests)&(FullyQualifiedName~Test1) ?

from dotnet-test-rerun.

jwias avatar jwias commented on September 21, 2024

Hi @ricardofslp

The issue appears when there's the same test name yes, in the particular example I mentioned - I have API tests only that do not initialise a web browser for UI tests, so when the rerun kicks in, it can also trigger tests that are in this UI test project, if the test names do match (I have instances of this)

Retaining filters I think would solve part of the issue for sure, in theory it could still match though with duplicate tests that fall under the same category? Is it not possible to have the actual fully qualified test name? or at least include the testing class as well as the test method(name), to try and ensure something more unique other that just test method(name)?

I of course simplified my original example, but there's also situations where I have duplicate test names within the same test project/test category, so I have things like

MyTests.API.CRUD.Test1
MyTests.API.Scenarios.Test1
etc.

Both of these tests could still be triggered by your example filter, because they both match the expression.

Having the re-run, only run the exact test that failed, would be excellent.

from dotnet-test-rerun.

ricardofslp avatar ricardofslp commented on September 21, 2024

Hi @jwias,

Could you please try this alpha version https://www.nuget.org/packages/dotnet-test-rerun/1.5.1-alpha.0 we've released to see if at least avoids the need to add the browser to the test api test stack?

Regarding only triggering the actual test we're still investigating the best way of doing that. Will need to test one option that I see as possible.

from dotnet-test-rerun.

jwias avatar jwias commented on September 21, 2024

Hi @ricardofslp this works great solving the first scenario! Very much looking forward to the second scenario being resolved.

Thank you for jumping on this so quickly, very much appreciated :)

from dotnet-test-rerun.

ricardofslp avatar ricardofslp commented on September 21, 2024

Hi @jwias,

Can you please test this alpha version https://www.nuget.org/packages/dotnet-test-rerun/1.6.0-alpha.0 ?
I think it can work for the second scenario.

from dotnet-test-rerun.

jwias avatar jwias commented on September 21, 2024

@ricardofslp this looks absolutely perfect! I've tested this, and it seems to solve the second scenario perfectly

from dotnet-test-rerun.

ricardofslp avatar ricardofslp commented on September 21, 2024

Hi @jwias ,

That is great we will release this in an official version soon.

from dotnet-test-rerun.

ricardofslp avatar ricardofslp commented on September 21, 2024

Official version has been released.
Please close this issue if the test succeeds

from dotnet-test-rerun.

Related Issues (18)

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.