-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fully automated end2end testing #327
Comments
We concluded that https://github.com/PrismarineJS/mineflayer is the way to go here! The (future) "test" then doesn't need Java, nor TestContainers, nor JBang - we'll just add 1 line to |
#348 made a start for this. What's left:
|
|
@edewit I just thought about this again... especially with #375 now done, which will then enable #382, it would be REALLY cool if we could slightly beef up our Mineflyer based test to do something a bit more interesting than only login - anything that could test our plugin loaded and works. That could give us the confidence among other things e.g. to approve Dependabot PRs, among other things, if we see them pass the build, once that includes a more useful real test. If showing title and make entities narrate isn't something that we can easily test with Mineflyer, then let's add whatever else is needed to our test JS and/or Java that we can actually really test with Mineflyer? Have a go at it if you are up for it! 😸 |
Having entries narrate in a mineflyer test is not possible, but we would be able to get the chat, so let me add that |
@edewit with #389 merged, shall we say that fixed this, and close this issue now? Or can / should we do more here? You asked if we could make the Mineflayer Player OP so that |
Right let's close this even though it doesn't test if 'say' gets executed it does test if the scripts work as it see the title being displayed. The only thing for fully e2e test would be if we test if an upload and reload would also succeed |
#400 adds additional coverage. |
It could be fun if our (new, introduced yesterday) manual testing steps could be fully automated.
This would be possible with a programmatic Minecraft client , such as:
https://github.com/GeyserMC/MCProtocolLib/blob/master/example/com/github/steveice10/mc/protocol/test/MinecraftProtocolTest.java looks great, but is too low level. Ask them if they know of any higher level libs built on them?
The text was updated successfully, but these errors were encountered: