Skip to content

Add unit tests for PGraphics setSize() in core module #1488

@aakritithecoder

Description

@aakritithecoder

Most relevant area for this enhancement?

Unit testing

Feature to enhance

PGraphics unit testing in core module

Enhancement details

Enhancement description

Add a PGraphicsTests.java file under core/test/processing/core/
that verifies PGraphics correctly initializes width and height
when setSize() is called.

Benefits

Prevents silent regressions in canvas setup logic. Ensures that
PGraphics behaves as expected during initialization, making the
codebase more reliable for contributors and maintainers.

Challenges

Ensuring the test integrates with the existing test infrastructure
and runs correctly both locally and in CI/CD.

Additional context

This test was written as part of extending the Processing4 test
suite. Related PR: #1462

Would you like to help implement this enhancement?

No, I’m just suggesting the enhancement

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions