Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug feature test junit logging on CI #2228

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,18 @@ jobs:
shell: bash
run: dotnet build -c Release --verbosity minimal

- name: 'Tests: Unit'
- name: 'Tests: Feature Tests'
uses: ./.github/workflows/test
with:
name: 'unit'
filter: 'FullyQualifiedName!~Elastic.Apm.StartupHook.Tests&FullyQualifiedName!~Elastic.Apm.Profiler.Managed.Tests&FullyQualifiedName!~Elastic.Apm.Azure'
filter: 'FullyQualifiedName~Elastic.Apm.Feature.Tests'
verbosity: detailed

- name: 'Tests: Unit'
uses: ./.github/workflows/test
with:
name: 'unit'
filter: 'FullyQualifiedName!~Elastic.Apm.StartupHook.Tests&FullyQualifiedName!~Elastic.Apm.Profiler.Managed.Tests&FullyQualifiedName!~Elastic.Apm.Azure'

azure-tests:
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ inputs:
description: 'test filter to select tests from solution projects'
required: false
default: 'net7.0'
verbosity:
description: 'logging verbosity'
required: false
default: 'minimal'

runs:
using: "composite"
Expand All @@ -25,7 +29,7 @@ runs:
shell: bash
run: |
dotnet test -c Release ${{ inputs.project }} --no-build \
--verbosity minimal \
--verbosity ${{ inputs.verbosity }} \
${{ inputs.filter != '' && format('--filter "{0}"', inputs.filter) || '' }} \
${{ inputs.framework != '' && format('-f {0}', inputs.framework) || '' }} \
--logger:"junit;LogFilePath=${GITHUB_WORKSPACE}/build/output/junit-${{ inputs.name }}-${{ runner.os == 'Linux' && 'linux' || 'windows' }}-{framework}-{assembly}.xml;MethodFormat=Class;FailureBodyFormat=Verbose" \
Expand Down
Loading