GithubHelp home page GithubHelp logo

jessehouwing / azure-pipelines-ensure-tests-task Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 2.0 271 KB

Azure Pipelines task to ensure tests have executed

Home Page: https://marketplace.visualstudio.com/items?itemName=jessehouwing.vsts-ensure-tests-tasks

License: Other

azure-pipelines-task azure-pipelines azure-devops continuous-testing azure-devops-extension

azure-pipelines-ensure-tests-task's Introduction

๐Ÿ”— Connect with me

Mastadontwitterfacebook linkedin stackoverflow instagram youtube rss bluesky


๐Ÿ’— Sponsor me


๐Ÿ“’ Recent blog posts


๐Ÿ‘จโ€๐Ÿ’ป Get trained in things Scrum and DevOps

If you're interested in a class that isn't currenly scheduled for public delivery or the dates don't suit you, do leave me a note to schedule a class on-demand for you and your team.


๐Ÿค– Tools


โ–ถ๏ธ GitHub Actions


๐Ÿš€ Azure Pipelines Extensions


๐Ÿ“… Azure Boards Extensions

azure-pipelines-ensure-tests-task's People

Contributors

jessehouwing avatar luboshl avatar renovate[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

luboshl aprilix

azure-pipelines-ensure-tests-task's Issues

Can it be an agent phase task too?

Thanks so much for this task - its really useful.

The biggest issue I have is that because the task only runs in an agentless phase, it complicates all my builds.

For example, take a simple library build. The pipeline needs to upload the produced nuget package to a nuget feed. Due to the fact that this task must run in an agentless phase, I now need three phases to perform the actions correctly. This is because I don't want the nuget packages to be uploaded if the Ensure Tests task fails.

  • Phase 1 - Agent
    • Perform Build
    • Upload pipeline artifacts
  • Phase 2 - Agentless
    • Ensure Tests
  • Phase 3 - Agent
    • Download pipeline artifacts
    • Upload to nuget feed

I realise this is probably due to the fact it's implemented using the API, but is there a redesign that would enable this scenario?

Not working with new azure pipelines (YAML) ?

pipeline.yaml

# ASP.NET Core
# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core

<....>
build and run tests
<....>

- task: Ensure tests have executed.@0
  inputs:
    minNumOfExpectedTests: 3

When trying to run getting:

image

Cannot add the task to my build

Hi, I a not able to add this task to my pipeline.

I created an agentless phase, set up the dependency with my agent phase that performs build and test, but I can not add the taks, it is only listed on marketplace. Please look at following image:

ensure

Broken Readme Links

Just a heads up that the links in the readme page (Wiki and file an issue) are broken. Looks like they are using a repo name of vsts-ensure-tests-tasks vs vsts-ensure-tests

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.