Skip to content

Commit 58544e9

Browse files
authored
Generate E2E integration test report in Azure DevOps (#845)
* Enable Azure DevOps pipeline test generation * Update the pipeline.yml * Fix variable * Remote docmodule test * Disable broken throughput test
1 parent 299701e commit 58544e9

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.ci/e2e_integration_test/pipeline.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,10 @@ steps:
3434
AzureWebJobsEventGridConnectionKey: $(AzureWebJobsEventGridConnectionKey)
3535
PythonVersion: $(PYTHON_VERSION)
3636
displayName: 'Running Python Language Worker E2E Tests'
37+
- task: PublishTestResults@2
38+
displayName: 'Publish Python Worker E2E Test Result'
39+
condition: succeededOrFailed()
40+
inputs:
41+
testResultsFiles: 'e2e-integration-test-report.xml'
42+
testRunTitle: 'Publish Python Worker E2E Test Result'
43+
failTaskOnFailedTests: true

.ci/e2e_integration_test/start-e2e.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ $output = "$FUNC_CLI_DIRECTORY.zip"
6464
Invoke-RestMethod -Uri "$(get_core_tool_download_url)" -OutFile $output
6565

6666
Write-Host 'Extracting Functions Core Tools...'
67-
Expand-Archive $output -DestinationPath $FUNC_CLI_DIRECTORY
67+
Expand-Archive $output -DestinationPath $FUNC_CLI_DIRECTORY -InformationAction SilentlyContinue
6868

6969
Write-Host "Starting Functions Host..."
7070
$env:FUNCTIONS_WORKER_RUNTIME = $FUNC_RUNTIME_LANGUAGE
@@ -86,6 +86,7 @@ Write-Host "Set-Location: $env:BUILD_SOURCESDIRECTORY"
8686

8787
Write-Host "Preparing E2E integration tests..." -ForegroundColor Green
8888
Write-Host "-----------------------------------------------------------------------------`n" -ForegroundColor Green
89+
python -m pip install -U pip
8990
pip install -e .[dev]
9091
python setup.py build
9192
python setup.py extension
@@ -94,5 +95,5 @@ Write-Host "--------------------------------------------------------------------
9495
Write-Host "Running E2E integration tests..." -ForegroundColor Green
9596
Write-Host "-----------------------------------------------------------------------------`n" -ForegroundColor Green
9697
$env:CORE_TOOLS_EXE_PATH = "$funcExePath"
97-
pytest --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
98-
Write-Host "-----------------------------------------------------------------------------`n" -ForegroundColor Green
98+
pytest --junitxml=e2e-integration-test-report.xml --cov=./azure_functions_worker --cov-branch --cov-append tests/endtoend --cov-report xml --cov-report html
99+
Write-Host "-----------------------------------------------------------------------------`n" -ForegroundColor Green

.github/workflows/perf-testing-setup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
test_to_run: [ SyncHttpTriggerHelloWorld, SyncHttpTriggerWithSyncRequests, AsyncHttpTriggerWithAsyncRequest, SyncHttpTriggerCPUIntensive, SyncPutBlobAsBytesReturnHttpResponse, SyncGetBlobAsBytesReturnHttpResponse ]
19+
test_to_run: [ SyncHttpTriggerHelloWorld, SyncHttpTriggerWithSyncRequests, AsyncHttpTriggerWithAsyncRequest, SyncHttpTriggerCPUIntensive ] #, SyncPutBlobAsBytesReturnHttpResponse, SyncGetBlobAsBytesReturnHttpResponse ]
2020
steps:
2121
- uses: actions/checkout@v2
2222
- name: Set up Python ${{ env.PYTHON_VERSION }}

0 commit comments

Comments
 (0)