Skip to content

add out-sentry integration-test script #63

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

Merged
merged 10 commits into from
Oct 22, 2024
Merged

add out-sentry integration-test script #63

merged 10 commits into from
Oct 22, 2024

Conversation

vaind
Copy link
Collaborator

@vaind vaind commented Oct 22, 2024

Adds test for stack-trace content when the script is launched as a script and as a command

Note: the tests' expected values show there's room for improvements - especially source context and empty frames. We can address that in followup PRs but this test at least gives as a baseline and a tool to make the changes.

Describe 'Out-Sentry captures expected stack traces for command input' {
BeforeEach {
Push-Location "$PSScriptRoot"
$expected = @(

Check warning

Code scanning / PSScriptAnalyzer

The variable 'expected' is assigned but never used. Warning test

The variable 'expected' is assigned but never used.
Describe 'Out-Sentry captures expected stack traces for file input' {
BeforeEach {
Push-Location "$PSScriptRoot"
$expected = @(

Check warning

Code scanning / PSScriptAnalyzer

The variable 'expected' is assigned but never used. Warning test

The variable 'expected' is assigned but never used.
Describe 'Out-Sentry captures expected stack traces for file input' {
BeforeEach {
Push-Location "$PSScriptRoot"
$expected = @(

Check warning

Code scanning / PSScriptAnalyzer

The variable 'expected' is assigned but never used. Warning test

The variable 'expected' is assigned but never used.
@vaind vaind marked this pull request as ready for review October 22, 2024 15:43
@vaind vaind merged commit 593e79f into main Oct 22, 2024
15 checks passed
@vaind vaind deleted the test/integration branch October 22, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant