Skip to content

Commit a3e84f2

Browse files
committed
Add ability to have all the failed tests (part 2)
1 parent 105e8f0 commit a3e84f2

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/actions/run-database-tests/action.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ inputs:
77
required: true
88
default: 'Release'
99
type: string
10+
show_all_fails:
11+
description: 'No mute tests'
12+
type: boolean
13+
default: false
14+
required: true
1015
test_output_verbosity:
1116
description: 'Verbosity for dotnet test command'
1217
required: true
@@ -36,21 +41,29 @@ runs:
3641
using: "composite"
3742
steps:
3843
- name: Test Orm.Tests set of tests
44+
env:
45+
GA_NO_IGNORE: ${{ inputs.show_all_fails }}
3946
if: ${{ !cancelled() && fromJSON(inputs.run_main) }}
4047
shell: bash
4148
run: dotnet test Orm/Xtensive.Orm.Tests/Xtensive.Orm.Tests.csproj -c ${{ inputs.build_config }} --no-build --logger "trx;LogFileName=Xtensive.Orm.Tests.trx" --results-directory ${{ inputs.test_results_folder }} -v ${{ inputs.test_output_verbosity }}
4249

4350
- name: Test Orm.Tests.Sql set of tests
51+
env:
52+
GA_NO_IGNORE: ${{ inputs.show_all_fails }}
4453
if: ${{ !cancelled() && fromJSON(inputs.run_sql) }}
4554
shell: bash
4655
run: dotnet test Orm/Xtensive.Orm.Tests.Sql/Xtensive.Orm.Tests.Sql.csproj -c ${{ inputs.build_config }} --no-build --logger "trx;LogFileName=Xtensive.Orm.Tests.Sql.trx" --results-directory ${{ inputs.test_results_folder }} -v ${{ inputs.test_output_verbosity }}
4756

4857
- name: Test BulkOperations extension set of tests
58+
env:
59+
GA_NO_IGNORE: ${{ inputs.show_all_fails }}
4960
if: ${{ !cancelled() && fromJSON(inputs.run_extensions) }}
5061
shell: bash
5162
run: dotnet test Extensions/Xtensive.Orm.BulkOperations.Tests/Xtensive.Orm.BulkOperations.Tests.csproj -c ${{ inputs.build_config }} --no-build --logger "trx;LogFileName=Xtensive.Orm.BulkOperations.Tests.trx" --results-directory ${{ inputs.test_results_folder }} -v ${{ inputs.test_output_verbosity }}
5263

5364
- name: Test Localization extension set of tests
65+
env:
66+
GA_NO_IGNORE: ${{ inputs.show_all_fails }}
5467
if: ${{ !cancelled() && fromJSON(inputs.run_extensions) }}
5568
shell: bash
5669
run: dotnet test Extensions/Xtensive.Orm.Localization.Tests/Xtensive.Orm.Localization.Tests.csproj -c ${{ inputs.build_config }} --no-build --logger "trx;LogFileName=Xtensive.Orm.Localization.Tests.trx" --results-directory ${{ inputs.test_results_folder }} -v ${{ inputs.test_output_verbosity }}
@@ -60,11 +73,15 @@ runs:
6073
# step. To not disturb normal tests execution Reprocessing tests moved outside the action.
6174

6275
- name: Test Security extension set of tests
76+
env:
77+
GA_NO_IGNORE: ${{ inputs.show_all_fails }}
6378
if: ${{ !cancelled() && fromJSON(inputs.run_extensions) }}
6479
shell: bash
6580
run: dotnet test Extensions/Xtensive.Orm.Security.Tests/Xtensive.Orm.Security.Tests.csproj -c ${{ inputs.build_config }} --no-build --logger "trx;LogFileName=Xtensive.Orm.Security.Tests.trx" --results-directory ${{ inputs.test_results_folder }} -v ${{ inputs.test_output_verbosity }}
6681

6782
- name: Test Tracking extension set of tests
83+
env:
84+
GA_NO_IGNORE: ${{ inputs.show_all_fails }}
6885
if: ${{ !cancelled() && fromJSON(inputs.run_extensions) }}
6986
shell: bash
7087
run: dotnet test Extensions/Xtensive.Orm.Tracking.Tests/Xtensive.Orm.Tracking.Tests.csproj -c ${{ inputs.build_config }} --no-build --logger "trx;LogFileName=Xtensive.Orm.Tracking.Tests.trx" --results-directory ${{ inputs.test_results_folder }} -v ${{ inputs.test_output_verbosity }}

.github/workflows/reusable-storage-dependant-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ jobs:
8686
REQUIRES_DOCKER: ${{ inputs.storage != 'sqlite3' }} #sqlite3 exists within runner
8787
DOCKER_SCRIPT_KEY: ''
8888
TEST_RESULTS_FOLDER: _Build/tests/${{ inputs.build_config }}/${{ inputs.target_framework }}/${{ inputs.storage }}
89-
GA_NO_IGNORE: ${{ inputs.show_all_fails }}
9089

9190
steps:
9291
- name: Downgrade OpenSSL
@@ -135,6 +134,8 @@ jobs:
135134
# Since composite action syntax does not allow to define step timeout
136135
# we have to run Reprocessing project here, because it may stuck in forever-loop
137136
- name: Test Reprocessing extension set of tests
137+
env:
138+
GA_NO_IGNORE: ${{ inputs.show_all_fails }}
138139
if: ${{ success() && inputs.run_extensions }}
139140
timeout-minutes: 5 # timeout here is VERY important because reprocessing tests concurrent execution which can cause forever loop
140141
run: dotnet test Extensions/Xtensive.Orm.Reprocessing.Tests/Xtensive.Orm.Reprocessing.Tests.csproj -c ${{ inputs.build_config }} --no-build --logger "trx;LogFileName=Xtensive.Orm.Reprocessing.Tests.trx" --results-directory ${{ env.TEST_RESULTS_FOLDER }} -v ${{ inputs.test_output_verbosity }}
@@ -145,6 +146,7 @@ jobs:
145146
uses: ./.github/actions/run-database-tests
146147
with:
147148
build_config: ${{ inputs.build_config }}
149+
show_all_fails: ${{ inputs.show_all_fails }}
148150
test_output_verbosity: ${{ inputs.test_output_verbosity }}
149151
test_results_folder: ${{ env.TEST_RESULTS_FOLDER }}
150152
run_main: ${{ fromJSON(inputs.run_main) }}

0 commit comments

Comments
 (0)