All Projects → idubnori → ParallelTestingSample-dotnet-core

idubnori / ParallelTestingSample-dotnet-core

Licence: MIT license
Sample for running dotnet core tests in parallel across multiple agents in Azure DevOps

Programming Languages

C#
18002 projects
shell
77523 projects

Projects that are alternatives of or similar to ParallelTestingSample-dotnet-core

azure-devops-terraform
Recipe to deploy Azure Infrastructure with Terraform via Azure DevOps
Stars: ✭ 18 (-5.26%)
Mutual labels:  azure-devops, azure-pipelines
pulumi-az-pipelines-task
Azure Pipelines task extension for running Pulumi apps.
Stars: ✭ 19 (+0%)
Mutual labels:  azure-devops, azure-pipelines
vsts-mirror-git-repository
A straightforward utility to mirror one Git repository to another location
Stars: ✭ 22 (+15.79%)
Mutual labels:  azure-devops, azure-pipelines
XamarinPipelineDemo
Demo and explanation on how to do several common tasks for Xamarin.Forms Android in an Azure DevOps pipeline on a Microsoft-hosted agent. Tasks include: build-based version, APK signing, publishing artifacts, unit tests, and UI tests (both via emulator in Azure DevOps and via real devices in App Center).
Stars: ✭ 23 (+21.05%)
Mutual labels:  azure-devops, azure-pipelines
azure-flutter-tasks
Easily build and deploy with latest Flutter build tasks for Azure DevOps Pipelines Tasks
Stars: ✭ 66 (+247.37%)
Mutual labels:  azure-devops, azure-pipelines
jmeter-aci-terraform
Scalable cloud load/stress testing pipeline solution with Apache JMeter and Terraform to dynamically provision and destroy the required infrastructure on Azure.
Stars: ✭ 114 (+500%)
Mutual labels:  azure-devops, azure-pipelines
vsts-publish-adf
This extension adds Azure Data Factory release tasks to Azure Pipelines.
Stars: ✭ 23 (+21.05%)
Mutual labels:  azure-devops, azure-pipelines
VstsExtensions
Documentation and issue tracking for Microsoft Premier Services Visual Studio Team Services Extensions
Stars: ✭ 42 (+121.05%)
Mutual labels:  azure-devops, azure-pipelines
PSRule-pipelines
Validate infrastructure as code (IaC) and DevOps repositories using Azure Pipelines.
Stars: ✭ 16 (-15.79%)
Mutual labels:  azure-devops, azure-pipelines
cake-vso
Cake integration for Azure DevOps.
Stars: ✭ 19 (+0%)
Mutual labels:  azure-devops, azure-pipelines
azure-pipelines-tfvc-tasks
Azure Pipelines tasks for Team Foundation Version Control
Stars: ✭ 26 (+36.84%)
Mutual labels:  azure-devops, azure-pipelines
yamlizr
Azure DevOps Designer-to-YAML Pipeline CLI CodeGen Tool
Stars: ✭ 23 (+21.05%)
Mutual labels:  azure-devops, azure-pipelines
devops-governance
Example end-to-end Governance Model from CI/CD to Azure Resource Manager. Use this project to deploy example AAD, ARM and Azure DevOps resources to learn about e2e RBAC.
Stars: ✭ 79 (+315.79%)
Mutual labels:  azure-devops, azure-pipelines
azure-pipelines-lighthouse
Embed Google Lighthouse HTML reports into Azure Pipelines
Stars: ✭ 37 (+94.74%)
Mutual labels:  azure-devops, azure-pipelines
cibuildwheel
🎡 Build Python wheels for all the platforms on CI with minimal configuration.
Stars: ✭ 1,350 (+7005.26%)
Mutual labels:  azure-pipelines
DevOpsMetrics
An experiment to extract and process high performing DevOps metrics (DORA) from GitHub Actions and Azure DevOps Pipelines
Stars: ✭ 127 (+568.42%)
Mutual labels:  azure-devops
HaxeCI
An example of using CI for Haxe projects.
Stars: ✭ 45 (+136.84%)
Mutual labels:  azure-pipelines
ci-skip
CI skip comment
Stars: ✭ 35 (+84.21%)
Mutual labels:  azure-pipelines
boots
boots is a .NET global tool for "bootstrapping" vsix & pkg files. Just "boots https://url/to/your/package"!
Stars: ✭ 78 (+310.53%)
Mutual labels:  azure-devops
AzureChamp
A repository for Azure Champ program to train technical experts to get ready for Azure
Stars: ✭ 16 (-15.79%)
Mutual labels:  azure-devops

ParallelTestingSample-dotnet-core

GitHub license Build Status

This .NET Core parallel testing sample uses --list-tests and --filter parameters of dotnet test to slice the tests. The tests are run using the NUnit.

This sample has the 100 tests, and slices them to 20 tests in 5 jobs. You can see the pipeline behavior result by clicking the build status badge above.

Overview of azure-pipelines.yml

Setting up parallel count

jobs:
- job: 'ParallelTesting'
  pool:
    name: Hosted Ubuntu 1604
  strategy:
    parallel: 5
  displayName: Run tests in parallel

Make slicing condition

  • Get test name list of all tests by using --list-tests parameter and grep Test_
  • create_slicing_filter_condition.sh makes filter condition to slice the tests, and set into $(targetTestsFilter)
  - bash: |
      tests=($(dotnet test . --no-build --list-tests | grep Test_))
      . 'create_slicing_filter_condition.sh' $tests
    displayName: 'Create slicing filter condition'

Run tests using slicing condition

 - task: DotNetCoreCLI@2
   displayName: Test
   inputs:
     command: test
     projects: '**/*Tests/*Tests.csproj'
     arguments: '--no-build --filter "$(targetTestsFilter)"'

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].