Skip to content

Conversation

@Askaholic
Copy link
Collaborator

Make the integration tests actually check something. This will be an OK way of testing things which are otherwise hard to do with unit tests because of the mocks. For example checking that a game's default title is set correctly if the host doesn't specify a title.

Added integration tests for:

  • Queueing a ladder match
  • Players banned form ladder receive the 'you are banned' message
  • Hosting a game with missing or empty fields

I also added a test-data.sql file to this repo so that we don't need to insert data in the test themselves, and don't need to submit PR's to Faforever/db just to add some test data.

@Rackover
Copy link
Member

Does that mean #392 is obsolete ?

@Askaholic
Copy link
Collaborator Author

Yea, this covers the game title stuff.

@Rackover
Copy link
Member

Tested, workign, merging

@Rackover Rackover merged commit 2926049 into FAForever:develop Mar 16, 2019
@Askaholic Askaholic deleted the integration-tests branch March 23, 2019 05:18
Brutus5000 pushed a commit that referenced this pull request Jun 24, 2019
* Use await syntax

* Move imports

* Move lobby_server fixture to conftest

* Added proper integration test for matchmaking search

* Update test_public_host

* Fix sending tutorial sections

* Add local test-data.sql for server unit tests

* Add test for players banned from the matchmaker

* Move ladder map repetition test data into sql file

* Added test for hosting a game with missing fields

* Fix test merge errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants