9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-19 14:59:21 +00:00
Files
HuskSync/test
dependabot[bot] 8b749357f7 build(deps): bump urllib3 from 2.2.2 to 2.5.0 in /test (#528)
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.2.2 to 2.5.0.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.2.2...2.5.0)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-version: 2.5.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-19 23:34:42 +01:00
..
2025-03-07 14:26:10 +00:00

Testing HuskSync

This is a rudimentary Python script for running a little Proxy network of servers for quickly testing HuskSync.

Run the script to spin up a Velocity proxy and a pair of Paper servers for testing HuskSync.

  • Useful for development & feature testing
  • Not useful for stress or integration testing.
  • Only works on Windows (as it deals with bash scripts)
  • Only spins up Paper servers at the moment ()

If you don't want to do this you can also run a single-server test with the various runServer tasks in the Bukkit/Fabric modules.

PRs to improve testing are welcomed with open arms & cups of tea!

Requirements

  • Windows
  • Python 3.14
  • MySQL DB running locally
  • Redis running locally

How to run

  1. Edit spin_network.py to your liking (change the MC version, add your name/UUID as a server operator)
  2. Configure HuskSync to point to your local MySQL/Redis DB (edit ~/test/config.yml)
  3. Run `pip install -r requirements.txt
  4. From the repository route, open terminal and run cd ./test, then python3 ./spin_network.py

Tips

  • Delete ~/test/servers and ~/test/HuskSync each time you want to download Paper/Velocity & re-create worlds, etc.
  • Create an IntelliJ Run & Debug Python task to do this with a Run Gradle Task before to clean build the project before.