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

Stop iteminfo test from failing w/ mod damage types #75278

Merged
merged 2 commits into from
Jul 28, 2024

Conversation

ehughsbaird
Copy link
Contributor

@ehughsbaird ehughsbaird commented Jul 27, 2024

Summary

None

Purpose of change

This test is failing on every PR, as tests are run with mods that add additional damage types.

Describe the solution

We can instead test for the specific damage types and the coverage header that we're testing for, and the test will no longer fail with additional damage types.

Testing

tests/cata_test --mods=dda,magiclysm 'Armor_values_preserved_after_copy-from,armor_protection'

Additional context

I think this is a clear message, but it will be a lot of text when it fails.
image

@github-actions github-actions bot added Code: Tests Measurement, self-control, statistics, balancing. [C++] Changes (can be) made in C++. Previously named `Code` astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Jul 27, 2024
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Jul 27, 2024
When mods add additional damage types, additional data is added to the
iteminfo strings, making testing for the whole string fail. But we can
instead test for the specific damage types and the coverage header that
we're testing for, and the test will no longer fail with additional
damage types.

A Beak bodypart is also added by the test mod, changing the protection
of some items.
Now that it's no longer checking the whole message, we can get back some
of the strictness that was lost by checking it's at least in increasing
order.
@Maleclypse Maleclypse merged commit 323b926 into CleverRaven:master Jul 28, 2024
26 checks passed
@ehughsbaird ehughsbaird deleted the better-iteminfo-test branch July 28, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Code: Tests Measurement, self-control, statistics, balancing. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants