Skip to content

Commit

Permalink
updated test coverage yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
v-baambati committed Jan 15, 2025
1 parent f9d1894 commit f89296c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/testCoverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,22 +62,22 @@ jobs:

- name: Run the tests in windows
if: matrix.os == 'windows-latest'
run: cd ./repo1/apps/plotly_examples && powershell -Command "(Get-Content -Path ./config/tests.js) -replace 'PROD', 'TEST' | Set-Content -Path ./config/tests.js" && yarn jest --coverage --coverageDirectory ./coverage/${{matrix.os}} --verbose --coverageReporters=html --coverageReporters=text > coverageReport.txt
run: cd ./repo1/apps/plotly_examples && yarn jest --coverage --coverageDirectory ./coverage/${{matrix.os}} --verbose --coverageReporters=html --coverageReporters=text > coverageReport.txt
continue-on-error: true

- name: Run a single test in windows
if: matrix.os == 'windows-latest'
run: cd ./repo1/apps/plotly_examples && powershell -Command "(Get-Content -Path ./config/tests.js) -replace 'PROD', 'TEST' | Set-Content -Path ./config/tests.js" && yarn jest ./src/components/VerticalBarChart --coverage --coverageDirectory ./coverage/${{matrix.os}}_VerticalBarChart --verbose --coverageReporters=html
run: cd ./repo1/apps/plotly_examples && yarn jest ./src/components/VerticalBarChart --coverage --coverageDirectory ./coverage/${{matrix.os}}_VerticalBarChart --verbose --coverageReporters=html
continue-on-error: true

- name: Run the tests in macos
if: matrix.os == 'macos-latest'
run: cd ./repo1/apps/plotly_examples && sed -i '' 's/PROD/TEST/g' ./config/tests.js && yarn jest --coverage --coverageDirectory ./coverage/${{matrix.os}} --verbose --coverageReporters=html --coverageReporters=text > coverageReport.txt
run: cd ./repo1/apps/plotly_examples && yarn jest --coverage --coverageDirectory ./coverage/${{matrix.os}} --verbose --coverageReporters=html --coverageReporters=text > coverageReport.txt
continue-on-error: true

- name: Run the tests in ubuntu
if: matrix.os == 'ubuntu-latest'
run: cd ./repo1/apps/plotly_examples && sed -i 's/PROD/TEST/g' ./config/tests.js && yarn jest --coverage --coverageDirectory ./coverage/${{matrix.os}} --verbose --coverageReporters=html --coverageReporters=text > coverageReport.txt
run: cd ./repo1/apps/plotly_examples && yarn jest --coverage --coverageDirectory ./coverage/${{matrix.os}} --verbose --coverageReporters=html --coverageReporters=text > coverageReport.txt
continue-on-error: true

- name: Generate coverage file name in windows
Expand Down

0 comments on commit f89296c

Please sign in to comment.