Skip to content

Section 4 - best practices: Explain how one would print to console in a test to view output. #20

@SylviaWhittle

Description

@SylviaWhittle

When handling random values, we don't know what we will be asserting, we need to print the result to see it, remembering to assert False to ensure the output is logged (since a passing test's logs are captured and not shown).

This came up as a question in one of the sessions, so it would be good to clarify in text.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions