Skip to content

Conversation

@fea-exorga
Copy link

Summary

Added Catrobat Language Test (CLT) for the "Set Motion Type" brick testing the "not moving under gravity, but others bounce off you" behavior.

Test Design

  • Single Panda sprite initially placed at Y=150
  • Motion type set to "not moving under gravity, but others bounce off you"
  • Stores initial Y position in variable initialY
  • Waits 4 seconds to allow gravity to potentially affect the sprite
  • Compares final Y position with initial position
  • Green background = PASS (position unchanged, motion type working correctly)
  • Red background = FAIL (position changed, regression detected)
  • Test is deterministic and machine-verifiable

Jira Ticket Reference

Pending: I am currently unable to create the required Jira bug ticket due to lack of contributor permissions. I have requested access via the Catrobat Google Group and will create and link the Jira ticket (format: CATROID-XXX) as soon as access is granted.

Training ticket contribution - First CLT submission for GSoC preparation.

Files Changed

  • Added: catroid/src/androidTest/assets/catrobatTests/motion/testSetMotionTypeNotMovingUnderGravity.catrobat

Checklist

  • Include a summary of the changes plus the relevant context
  • Choose the proper base branch (develop)
  • Confirm that the changes follow the project's coding guidelines
  • Perform a self-review of the changes
  • Verify to commit no other files than the intentionally changed ones
  • Include reasonable and readable tests verifying the added or changed behavior
  • Verify that your changes do not have any conflicts with the base branch
  • Check that the commits' message style matches the project's guideline
  • Jira ticket name in PR title (pending access)
  • Post in Slack channel for code review (pending access)

Notes

As a first-time contributor, I am still awaiting:

  • Jira contributor access (requested via Google Group)
  • Slack workspace access

I will complete these steps once access is granted. In the meantime, requesting review here.

@WolfgangSlany - Could you please review this CLT submission?

Added Catrobat Language Test for the "Set Motion Type" brick testing the
"not moving under gravity, but others bounce off you" behavior.

The test verifies that a sprite with this motion type is unaffected by
gravity by comparing its Y position before and after a 4-second wait.
Green background indicates pass, red indicates failure.

Note: Jira Ticket prefix will be added once contributor access is
granted. This is a training ticket contribution.
@sonarqubecloud
Copy link

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