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

Capture console in tests #497

Merged
merged 6 commits into from
Jun 30, 2024
Merged

Capture console in tests #497

merged 6 commits into from
Jun 30, 2024

Conversation

drcjt
Copy link
Owner

@drcjt drcjt commented Jun 30, 2024

Support use of console output in tests using z80dotnet. Any console output during test is captured and emitted to the real console at the end of the test.

Use console output in generic tests

Also fixed bug in copying data for empty structs which get padded to 1 byte.

Contributes to #466

Use console in GenericField tests to report failures
Fix issue with copying data for empty structs which are padded to 1 byte
Uncomment generic type parameters tests previously failing due to empty structs padded to 1 byte
@drcjt drcjt self-assigned this Jun 30, 2024
@drcjt drcjt added the testing Anything test related label Jun 30, 2024
Copy link

sonarcloud bot commented Jun 30, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
3.7% Coverage on New Code (required ≥ 80%)
78.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@drcjt drcjt merged commit b356312 into main Jun 30, 2024
1 of 2 checks passed
@drcjt drcjt deleted the Capture-Console-In-Tests branch June 30, 2024 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Anything test related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant