-
-
Notifications
You must be signed in to change notification settings - Fork 395
Ensure additional bot testing & general test-bots improvements #403
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
Conversation
Merged all but the last commit. |
@neiljp in some commits paths hardcoded paths like
were used. I'm fairly confident they'll lead to tests breaking on Windows. While you're at it, can you normalize the paths. You could e.g. use
|
@roberthoenig We use Maybe we need automated testing on Windows, if we intend to support that? |
@neiljp Where we don't use normpath we probably use I've been doing a lot of work on this repo from a Windows machine, so fortunately there shouldn't be many issues. But other than that, yes, only reports and careful staring can help, and linter rules. |
@neiljp This LGTM but we seem to have a build failure. Can you investigate that and rebase as needed? |
@showell The build failure is related to the merels bot tests actually running with that commit, which they may have been at some point (somehow), but are some ways from doing right now from what I can tell. I can certainly investigate further but was unsure whether to delegate to the bot or tests author (@amanagr ? @Privisus ?). |
An |
The current test for merels is according to the previous implementation. The new implementation with the game handler will require a lot of changes in the tests. I will just make merels pass tests by removing the cases which don't work and require a complete workaround. Edit: |
@amanagr Could you add an issue such as "Rework and enable Merels tests" with your understanding of the situation? My feeling would be that if we have a separate issue to track this, we should be able to close this PR. |
Closed as per above, ie. pending #433. |
See #402 for reference, but:
__init__.py
files__init__.py
to get them testingtest-bots
This should be easy to review, as most commits are small and many are independent.
The penultimate commit enables the updated
test-bots
to run cleanly for bots with no__init__.py
, as currently (mistakenly!). This behavior can be modified later (and controlled at run-time with--error-on-no-init
), but maintains current status until the last bot with tests but no__init__.py
has their tests fully fixed - which the last commit starts to do.NOTE: From "Use unused available_bots to discover tests" to "Detect absent
__init__.py
& optionally exit", merels will currently fail; this can easily be minimised with a rebase, but to avoid it entirely would require a little more work.