-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
SpecialLumpClass testing #114
Comments
Currently working on |
Each test should live in a class inside it's branch script's test file: # tests/branches/id_software/test_quake.py
class TestMipTextureLump:
... |
include
|
Only 4
So we only really need to test those 4, the rest just set some common variables:
|
Forgot to write tests when all the
SpecialLumpClass
es got refactored in #68#112 shows how big a mistake that was
.from_bytes()
->.as_bytes()
->.from_bytes
shouldn't mutateSome data loss is OK (comments in
Entities
etc.), but we should strive towardsbyte-for-byte
__init__
should also create a valid objectSome test maps & in-game checks will be needed in places (will it load? crash?)
Plenty of SpecialLumpClasses can be tested w/ tailored samples w/o a test map
SpecialLumpClasses
w/ enough testsid_software.quake.MipTextureLump
id_software.quake2.Visibility
id_software.quake3.Visibility
respawn.titanfall.EntityPartitions
shared.Entities
shared.PakFile
shared.TextureDataStringData
valve_physics.CollideLump
valve_physics.Displacement
strata.strata.PhysicsDisplacement
GameLumpClasses
w/ enough testsvalve.source.GameLump_SPRPv4
nexon.vindictus69.GameLump_SPRPv6
nexon.vinductus.GameLump_SPRPv6
nexon.vindictus.GameLump_SPRPv7
valve.source.GameLump_SPRPv5
valve.source.GameLump_SPRPv6
valve.source.GameLump_SPRPv7
valve.left4dead.GameLump_SPRPv8
valve.left4dead2.GameLump_SPRPv9
valve.sdk_2013_x360.GameLump_SPRPv9_x360
valve.sdk_2013_x360.GameLump_SPRPv8_x360
valve.orange_box.GameLump_SPRPv10
valve.sdk_2013.GameLump_SPRPv10
valve.sdk_2013.GameLump_SPRPv11
respawn.titanfall.GameLump_SPRPv12
respawn.titanfall_x360.GameLump_SPRPv12
respawn.titanfall2.GameLump_SPRPv13
strata.strata.GameLump_SPRPv12
strata.strata.GameLump_SPRPv13
utoplanet.merubasu.GameLump_SPRPv11
valve.sdk_2013_x360.GameLump_SPRPv11_x360
valve.sdk_2013_x360.GameLump_SPRPv10_x360
valve.orange_box_x360.GameLump_SPRPv6_x360
valve.orange_box_x360.GameLump_SPRPv5_x360
valve.orange_box_x360.GameLump_SPRPv4_x360
The text was updated successfully, but these errors were encountered: