Commit graph

141 commits

Author SHA1 Message Date
Romain Beaumont
33178bb94d
add new fields in login packet usage for 1.15.1 2019-12-29 23:27:04 +01:00
Romain Beaumont
4604330586
handle count with number properly in packet test 2019-12-29 23:17:38 +01:00
Romain Beaumont
83a77be10b fix for latest standard 2019-08-20 22:14:37 +00:00
Romain Beaumont
8e5264dc52 fix lint for new standard version 2019-08-03 23:29:14 +00:00
Romain Beaumont
b5b500adf8
1.14 support (#628) 2019-05-20 01:46:02 +02:00
Romain Beaumont
822d9e12dd
fix slot value in packet tests and update some deps 2018-10-16 22:23:16 +02:00
Romain Beaumont
0bd2e559bd
run standard 1.12 --fix 2018-09-24 22:08:11 +02:00
Romain Beaumont
761fe16f86
Improve test reliability and speed and move to circle ci 2
* increase vanilla server ram in tests
* add more logs
* handle client error properly
* don't wait for chat to be sent back from the server to wait 10s in clientTest
2018-08-26 04:54:17 +02:00
Romain Beaumont
465a98b989
end the client in all cases in clientTest.js
fix #535
2018-08-26 02:23:39 +02:00
Romain Beaumont
34f7611d45
1.13 support 2018-08-11 00:04:21 +02:00
Romain Beaumont
9778bb920b
add test value for type u64 2018-05-14 01:00:32 +02:00
Romain Beaumont
db1cbd4941
small style fixes following standard migration 2018-05-14 00:20:21 +02:00
Romain Beaumont
e3e0a26dfe
change codestyle to standard + enforce it with circle ci 2018-05-13 22:50:16 +02:00
Romain Beaumont
ad0c76dd72
remove console.log 2018-01-01 22:48:13 +01:00
Romain Beaumont
482a4ecffd
17w50a support 2018-01-01 21:01:23 +01:00
allain
137320489c using os.tmpdir() instead of '/tmp' since it's more portable 2017-08-28 10:13:59 -04:00
allain
b44e052f28 store minecraft jars in /tmp unless overriden by ENV variable 2017-08-27 21:55:42 -04:00
Romain Beaumont
5942d42d8b
increase server test timeout a bit 2017-07-21 22:48:18 +02:00
Romain Beaumont
79f82afb91
var -> const/let in examples and tests 2017-07-13 14:03:52 +02:00
Romain Beaumont
1a4d9f1e84
fix version checking bug with 1.12 and share vanilla server instance between tests 2017-06-19 15:28:24 +02:00
Romain Beaumont
b445e7fb94
fix kicking message in test for 1.12 2017-06-19 14:57:28 +02:00
Romain Beaumont
d9d1b7a56e
fix 1.12 tests : implement anon fields, set varint test value to 1 for some switch, implement bitfield, don't assume non-anon containers for packets 2017-06-19 14:34:13 +02:00
Romain Beaumont
20dd0710f2 parallel circle ci testing of clientTest.js (#373) (#449)
parallel testing with circle ci, solve #373
2017-05-10 02:49:13 +02:00
Romain Beaumont
a55d2bc42c
produce a decent error when connecting with the wrong version 2017-03-12 12:23:13 +01:00
Romain Beaumont
9c089244b3
use a different data dir for each version in tests 2016-11-16 01:02:15 +01:00
Romain Beaumont
00b539d0c7 fix tests and fix #360 2016-02-23 19:37:47 +01:00
Romain Beaumont
88bb301693 fix packet test 2016-02-23 19:11:12 +01:00
Romain Beaumont
6fb6b35cc5 disable online test for now
until we save the tokens or something like that, which bypass the mojang server limits
2016-02-20 17:18:56 +01:00
Romain Beaumont
25e2cdcf62 update long and packages 2016-02-19 23:43:30 +01:00
Romain Beaumont
09b491f39e https://github.com/roblabla/ProtoDef/pull/50 : update to new numerical names 2016-02-19 16:58:30 +01:00
Romain Beaumont
3132303c2e add new datatypes test values for 1.7, progress on #359 2016-02-19 01:47:44 +01:00
Romain Beaumont
14ec6077cd using minecraftVersion everywhere 2016-02-19 01:02:57 +01:00
Romain Beaumont
a129d13cf1 use minecraftVersion in tests, stop if no varint in framer 2016-02-19 00:48:39 +01:00
Romain Beaumont
b2b53c9343 a few small changes to make the code better 2015-11-30 22:19:56 +01:00
Romain Beaumont
d25c4a2017 add optionalNbt, use it directly in protocol.json in packets and for defining slot 2015-11-15 17:48:25 +01:00
Romain Beaumont
30d0939968 use prismarine-nbt 0.1.0 and fix some npm warnings 2015-11-15 02:33:32 +01:00
Romain Beaumont
d86a59c393 use protodef utils, fix #295 2015-11-09 15:40:04 +01:00
Romain Beaumont
f45c6dff49 use protodef:
* move general datatypes to protodef along with their tests
* move states to states.js file
* use one protodef serializer by state and direction instead of one big serializer for everything (same thing for the deserializer)
* define a packet as a protodef type using a switch and a container, and adding each minecraft packet as a type (packet_ + name)
* use mapper type from protodef to convert id to name in packet definition
* use general string type : pstring
* divide by 10 the number of iteration in the benchmark to get back to a reasonable test execution time
2015-11-08 23:29:51 +01:00
Robin Lambertz
75303f412f Merge pull request #270 from rom1504/split_tests
split the tests in 3 files, fix #265
2015-10-13 22:24:14 +02:00
Robin Lambertz
5593c69416 Merge pull request #264 from rom1504/mocha_benchmarks
use mocha for benchmark (allow better mocha grepping + it's cleaner)
2015-10-13 22:20:11 +02:00
Romain Beaumont
92b4b2bf8d split the tests in 3 files, fix #265 2015-10-02 02:02:54 +02:00
roblabla
8ce13dd9e2 Fix tests : client.session.username doesn't exist 2015-10-02 01:30:23 +02:00
Robin Lambertz
c5d4848dfd Merge pull request #263 from rom1504/enable_client_connection_tests
Enable client connection tests
2015-10-02 01:24:31 +02:00
Romain Beaumont
9e0cecfc6f update minecraft-wrap : wrap.download now automatically checks the md5 of the file before and after downloading 2015-10-01 14:25:07 +02:00
Romain Beaumont
449c8dee00 increase mocha timeout to 20s for benchmarks 2015-09-30 18:16:41 +02:00
Romain Beaumont
1d5f55235e use mocha for benchmark (allow better mocha grepping + it's cleaner) 2015-09-30 18:11:57 +02:00
Romain Beaumont
788ad29815 fix chat count problem in tests + line listener 2015-09-30 17:53:24 +02:00
Romain Beaumont
698a64f926 fix and enable online client connection test 2015-09-30 17:30:52 +02:00
Romain Beaumont
fd0d9f5a13 fix and enable offline client connection test 2015-09-30 17:23:47 +02:00
Romain Beaumont
917b6adda1 enable cross version with an option in createClient and createServer :
* put parsePacketData in deserializer and createPacketBuffer in serializer
* remove packets from the index and expose readPacket instead
* load packets when needed in various files
* make tests test every supported version
static cross version of #234, fix #65, fix #240
2015-09-29 22:44:28 +02:00