Skip to content
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
22 changes: 22 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,28 @@ jobs:
verbose: true
file: ./coverage/amazonq/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
- name: 'Test Analytics (Toolkit)'
env:
# Unset NODE_OPTIONS because of https://github.com/codecov/uploader/issues/475
NODE_OPTIONS: ''
if: ${{ !cancelled() && github.repository == 'aws/aws-toolkit-vscode' && github.event_name == 'pull_request' && github.base_ref == 'master' }}
uses: codecov/test-results-action@v1
with:
flags: macos-analytics-toolkit-unittests
verbose: true
file: ./.test-reports/amazonwebservices.aws-toolkit-vscode-report.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: 'Test Analytics (Amazon Q)'
env:
# Unset NODE_OPTIONS because of https://github.com/codecov/uploader/issues/475
NODE_OPTIONS: ''
if: ${{ !cancelled() && github.repository == 'aws/aws-toolkit-vscode' && github.event_name == 'pull_request' && github.base_ref == 'master' }}
uses: codecov/test-results-action@v1
with:
flags: macos-analytics-amazonq-unittests
verbose: true
file: ./.test-reports/amazonwebservices.amazon-q-vscode-report.xml
token: ${{ secrets.CODECOV_TOKEN }}

web:
needs: lint-commits
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/test/testRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ export async function runTests(
}

const root = getRoot()
const outputFile = path.resolve(root, '../../', '.test-reports', 'report.xml')
const outputFile = path.resolve(root, '../../', '.test-reports', `${extensionId}-report.xml`)
const colorOutput = !process.env['AWS_TOOLKIT_TEST_NO_COLOR']

console.log('Test being output to %s', outputFile)
// Create the mocha test
const mocha = new Mocha({
ui: 'bdd',
Expand Down
Loading