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

test: add NetworkMode setting to MTE #5037

Merged
merged 5 commits into from
Jun 5, 2022
Merged

Conversation

keturn
Copy link
Member

@keturn keturn commented Jun 1, 2022

Allows MTE tests to use the networkMode argument to the @IntegrationEnvironment to specify which network mode the engine will start in: none (local player only), server with local player, or server-only (i.e. headless).

@IntegrationEnvironment is a new annotation. The plan is for MTE settings to move there, as opposed to making an annotation per setting. (See Terasology/ModuleTestingEnvironment#76.)

Fixes #5031

How to Test

No impact expected on existing servers or tests, as the default is unchanged.

You could start a server (headless and headed) and connect to it just to confirm.

@keturn keturn added Type: Improvement Request for or addition/enhancement of a feature Category: Test/QA Requests, Issues and Changes targeting tests and quality assurance labels Jun 1, 2022
@keturn keturn marked this pull request as draft June 1, 2022 01:22
stumble upon overlapping Engines instances in MTE :(
@keturn
Copy link
Member Author

keturn commented Jun 1, 2022

yes Jenkins, the test all pass, but we haven't added any tests that use this yet.

Well, it might be possible to go ahead with this without waiting on networking's CoreRegistry removal by switching between just LISTEN_SERVER (the current default) and NONE (single-player)... maybe it doesn't get in to trouble until we try to use DEDICATED_SERVER.

Well, it needs some tests written in any case.

@keturn keturn marked this pull request as ready for review June 1, 2022 21:24
@keturn
Copy link
Member Author

keturn commented Jun 1, 2022

Some basic tests added. Seems okay probably.

keturn and others added 3 commits June 4, 2022 10:55
# Conflicts:
#	engine-tests/src/main/java/org/terasology/engine/integrationenvironment/Engines.java
# Conflicts:
#	engine-tests/src/main/java/org/terasology/engine/integrationenvironment/jupiter/MTEExtension.java
@jdrueckert jdrueckert merged commit 182f308 into develop Jun 5, 2022
@jdrueckert jdrueckert deleted the test/mteNetworkMode branch June 5, 2022 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Test/QA Requests, Issues and Changes targeting tests and quality assurance Type: Improvement Request for or addition/enhancement of a feature
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

allow other network modes in MTE
2 participants