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

Tests assertions #379

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Tests assertions #379

wants to merge 3 commits into from

Conversation

Gabriele-Clayton
Copy link
Contributor

No description provided.

clayton-staging[bot]
clayton-staging bot previously approved these changes Jan 5, 2024
Copy link

@clayton-staging clayton-staging bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your code passed with warnings

See the full report


// THEN
Assert.areEqual(1, computedCoordinates.size());
Assert.isNull(computedCoordinates[0].lat);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing Best Practice: Uncommented assertion

Severity

Warning

Finding

This assertion does not include any comments. Please add a comment that describes rationale of the assertion.

Why is this a problem?

Assertions let you test the behaviour of your application, increasing your confidence that your logic works as expected. Adding precise assertions to your tests is one of the most effective ways to detect and correct bugs. Using comments to describe the rationale of each assertion has the added benefit of documenting the inner working of the application logic, enhancing maintainability.

Help and documentation

);

// THEN
Assert.areEqual(1, computedCoordinates.size());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing Best Practice: Uncommented assertion

Severity

Warning

Finding

This assertion does not include any comments. Please add a comment that describes rationale of the assertion.

Why is this a problem?

Assertions let you test the behaviour of your application, increasing your confidence that your logic works as expected. Adding precise assertions to your tests is one of the most effective ways to detect and correct bugs. Using comments to describe the rationale of each assertion has the added benefit of documenting the inner working of the application logic, enhancing maintainability.

Help and documentation

// THEN
Assert.areEqual(1, computedCoordinates.size());
Assert.isNull(computedCoordinates[0].lat);
Assert.isNull(computedCoordinates[0].lon);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing Best Practice: Uncommented assertion

Severity

Warning

Finding

This assertion does not include any comments. Please add a comment that describes rationale of the assertion.

Why is this a problem?

Assertions let you test the behaviour of your application, increasing your confidence that your logic works as expected. Adding precise assertions to your tests is one of the most effective ways to detect and correct bugs. Using comments to describe the rationale of each assertion has the added benefit of documenting the inner working of the application logic, enhancing maintainability.

Help and documentation


// THEN
Assert.areEqual(1, computedCoordinates.size());
Assert.areEqual(LATITUDE, computedCoordinates[0].lat);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing Best Practice: Uncommented assertion

Severity

Warning

Finding

This assertion does not include any comments. Please add a comment that describes rationale of the assertion.

Why is this a problem?

Assertions let you test the behaviour of your application, increasing your confidence that your logic works as expected. Adding precise assertions to your tests is one of the most effective ways to detect and correct bugs. Using comments to describe the rationale of each assertion has the added benefit of documenting the inner working of the application logic, enhancing maintainability.

Help and documentation

// THEN
Assert.areEqual(1, computedCoordinates.size());
Assert.areEqual(LATITUDE, computedCoordinates[0].lat);
Assert.areEqual(LONGITUDE, computedCoordinates[0].lon);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing Best Practice: Uncommented assertion

Severity

Warning

Finding

This assertion does not include any comments. Please add a comment that describes rationale of the assertion.

Why is this a problem?

Assertions let you test the behaviour of your application, increasing your confidence that your logic works as expected. Adding precise assertions to your tests is one of the most effective ways to detect and correct bugs. Using comments to describe the rationale of each assertion has the added benefit of documenting the inner working of the application logic, enhancing maintainability.

Help and documentation

);

// THEN
Assert.areEqual(1, computedCoordinates.size());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing Best Practice: Uncommented assertion

Severity

Warning

Finding

This assertion does not include any comments. Please add a comment that describes rationale of the assertion.

Why is this a problem?

Assertions let you test the behaviour of your application, increasing your confidence that your logic works as expected. Adding precise assertions to your tests is one of the most effective ways to detect and correct bugs. Using comments to describe the rationale of each assertion has the added benefit of documenting the inner working of the application logic, enhancing maintainability.

Help and documentation

clayton-staging[bot]
clayton-staging bot previously approved these changes Jan 19, 2024
Copy link

@clayton-staging clayton-staging bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats, your code passed without warnings 🚀

See the full report

@clayton-staging clayton-staging bot dismissed stale reviews from themself March 5, 2024 13:52

This code review is obsolete

clayton-staging[bot]
clayton-staging bot previously approved these changes Mar 5, 2024
Copy link

@clayton-staging clayton-staging bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats, your code passed without warnings 🚀

See the full report

@clayton-staging clayton-staging bot dismissed their stale review March 5, 2024 13:52

This code review is obsolete

clayton-staging[bot]
clayton-staging bot previously approved these changes Mar 5, 2024
Copy link

@clayton-staging clayton-staging bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats, your code passed without warnings 🚀

See the full report

@clayton-staging clayton-staging bot dismissed their stale review March 5, 2024 13:52

This code review is obsolete

clayton-staging[bot]
clayton-staging bot previously approved these changes Mar 5, 2024
Copy link

@clayton-staging clayton-staging bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats, your code passed without warnings 🚀

See the full report

@clayton-staging clayton-staging bot dismissed their stale review March 5, 2024 13:52

This code review is obsolete

clayton-staging[bot]
clayton-staging bot previously approved these changes Mar 5, 2024
Copy link

@clayton-staging clayton-staging bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats, your code passed without warnings 🚀

See the full report

@clayton-staging clayton-staging bot dismissed their stale review March 5, 2024 13:54

This code review is obsolete

clayton-staging[bot]
clayton-staging bot previously approved these changes Mar 5, 2024
Copy link

@clayton-staging clayton-staging bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats, your code passed without warnings 🚀

See the full report

@clayton-staging clayton-staging bot dismissed their stale review March 5, 2024 13:54

This code review is obsolete

Copy link

@clayton-staging clayton-staging bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats, your code passed without warnings 🚀

See the full report

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.

None yet

1 participant