This website requires JavaScript.
Explore
Main Site
Help
Register
Sign In
mirrors
/
CC-Tweaked
mirror of
https://github.com/SquidDev-CC/CC-Tweaked
Watch
1
Star
0
Fork
You've already forked CC-Tweaked
0
Code
Issues
Releases
Wiki
Activity
b31e66686d
CC-Tweaked
/
src
/
test
/
server-files
/
computers
/
ids.json
3 lines
20 B
JSON
Raw
Normal View
History
Unescape
Escape
Run integration tests in-game Name a more iconic duo than @SquidDev and over-engineered test frameworks. This uses Minecraft's test core[1] plus a home-grown framework to run tests against computers in-world. The general idea is: - Build a structure in game. - Save the structure to a file. This will be spawned in every time the test is run. - Write some code which asserts the structure behaves in a particular way. This is done in Kotlin (shock, horror), as coroutines give us a nice way to run asynchronous code while still running on the main thread. As with all my testing efforts, I still haven't actually written any tests! It'd be good to go through some of the historic ones and write some tests though. Turtle block placing and computer redstone interactions are probably a good place to start. [1]: https://www.youtube.com/watch?v=vXaWOJTCYNg
2021-01-09 19:50:27 +00:00
{
Make rednet.run a little more strict Also add a test for rednet message sending. Hopefully gives some of the modem and networking code a little bit of coverage (which is clearly the same as being right :p).
2021-07-23 22:53:40 +00:00
"computer"
:
14
Add a whole bunch of tests Coverage graph goes woosh. Hopefully. More importantly, all of these are historic regressions, so very much worth tracking.
2021-01-19 20:02:45 +00:00
}