Giter VIP home page Giter VIP logo

Comments (9)

EnricoMi avatar EnricoMi commented on May 18, 2024 1

You are right, there are use-cases where you want it to succeed and not pollute your checks. More flexibility over the default behaviour is a good compromise in this case.

Do you want to update your PR or should I sketch it out as it would require README.md and action.yml changes as well?

from publish-unit-test-result-action.

EnricoMi avatar EnricoMi commented on May 18, 2024 1

I will prepare something tomorrow then.

from publish-unit-test-result-action.

EnricoMi avatar EnricoMi commented on May 18, 2024 1

Please try the fix by running the action from branch branch-check-fail-behaviour:

uses: EnricoMi/publish-unit-test-result-action@branch-check-fail-behaviour

from publish-unit-test-result-action.

EnricoMi avatar EnricoMi commented on May 18, 2024

The quoted This action does not fail … refers to the actual publish job (publish_unit_test_results), which is green in both your screenshots. The check run that you are referring to is created by that action to summarize the test results.

To be honest I am not quite sure what is the best behaviour here. One could argue that the Unit Test Results check could represent the outcome of the unit tests and thus should reflect the failure, while the publish_unit_test_result is always green unless there is an exception in processing test results.

On the other hand you could say that the job that ran the unit tests should also fail, thus it is redundant for Unit Test Results to also be in fail state.

Unless there is a good reasoning for the latter point, I think I am shifted towards the first. In that case, I should probably reword that note to be more precise.

from publish-unit-test-result-action.

bob-bins avatar bob-bins commented on May 18, 2024

The current functionality is rigid and cannot satisfy a use-case where we want certain test failures to be notified on, but not actually cause a failure in the workflow.

What do you think about a boolean parameter for failOnFailedTests defaulting to true instead of forcing a specific behavior?

from publish-unit-test-result-action.

bob-bins avatar bob-bins commented on May 18, 2024

If you'd prefer to take the task I'd support that. Otherwise I could work on it on the weekend.

from publish-unit-test-result-action.

bob-bins avatar bob-bins commented on May 18, 2024

works great. thanks!

from publish-unit-test-result-action.

EnricoMi avatar EnricoMi commented on May 18, 2024

Merged to master. This will be released shortly.

from publish-unit-test-result-action.

EnricoMi avatar EnricoMi commented on May 18, 2024

This has been released. If you are using @v1, it should be picked up on the next run, otherwise upgrade to @v1.10 or @v1.

from publish-unit-test-result-action.

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.