-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Update testing #14
Update testing #14
Conversation
Aren't the tests supposed to be skipped? Since most ROMs can't be tested (we couldn't use illegal ROMs), we don't want them to throw errors, but we want to make sure that anyone that uses their own legal copy of the ROM is able to test them before committing a new game environment. |
@victorsevero Yes, this is what I did in deeac25 The reminding error is
It looks like Bomberman and IceHockey are new environment (not part of the original project). @MatPoliquin What should we do with them? Currently, I am just logging the warnings, @MatPoliquin do you understand what these mean or why?
|
@pseudo-rnd-thoughts I am unsure about the error but I think I can help with the warnings. Each game in stable-retro has some mappings for certain variables in the ROM's RAM. Each game needs a For example, the The lines that are throwing these errors are stable-retro/retro/testing/tools.py lines 94-96. I believe that these warnings are just to ensure that the original integrated games had the correct byte-format-to-address mapping for the important variables Maybe they were assuming that in most of the games, the |
@pseudo-rnd-thoughts For Bomberman and Icehockey we can remove them for now until I properly integrate them. |
Personally, I found all of the testing confusing and unclear what was happening.
I have replicated the tests using
pytest.mark.parametrize
rather thanpytest.fixture
as this makes it more clear what is being iterated over IMO.Looking at the current testing,
3341 passed, 4388 skipped, 13 warnings in 15.63s
which is an alarming number skipped. I found the cause isconftest.py
which is skipping the tests if the ROMs are missing. I have removed this file exposing the issue rather than hiding it.The new pytest status is
3,369 passing, 0 skipped, 4,360 failing
DON'T MERGE UNTIL TESTS ARE PASSING
Changes
conftest.py
as this was a hack to skip testsfrom enum import Flag
compatibility code as stable-retro doesn't support python 3.6 anymore so not an issue anymoretests/test_python/
and cpp testing intotests/test_cpp/
retro.testing.__init__.py
code totests/test_python/__init__.py
retro/testing/verify_changes.py
as this appeared to be fortravis.py
which is now removedretro/testing/__init__.py
forgame
fixture to just an equivalent listall_games
intests/test_python/__init__.py
handle
function in favor of explicitly testinglen(warnings) == 0
andlen(errors) == 0