19 Commits

Author SHA1 Message Date
SX
b43f56bb00 Update mineunit actions for reporting 2021-03-01 11:15:18 +01:00
SX
431d917ff3 Mineunit rock 2021-02-23 08:33:11 +01:00
SX
c35b61f7ca Test coverage report (#156)
* Coverage and mineunit configuration

* Add .luacov config and install cluacov

* Add coverage badge

* Update coverage badge label

* Use mineunit-actions

* Fix working-directory

* Remove mineunit from submodules

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2021-02-18 13:54:55 +02:00
SX
5e78d73aa5 Merge networks tests + better queue handling 2020-12-09 01:49:50 +02:00
SX
fd3b0898af Update mineunit (#133)
* Switch to mineunit for regression tests

* Update mineunit

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2020-11-24 10:06:56 +02:00
SX
8405b5cdb9 Switch to mineunit for regression tests 2020-11-21 18:25:49 +01:00
SX
6a777fbeb9 Use technic.conf for all technic mod settings, update admin commands, some cleanup, averages for network lag detection (#111)
* Configs to correct place, use moving average for net lag, improve admin commands

* Fix luacheck warnings

* Handle file paths, missing cfg file and Settings:set simlar way engine does

* Quarry and radiation settings to technic.conf

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2020-11-05 12:39:49 +02:00
BuckarooBanzay
7e59c1c3d7 add minetest.get_current_modname() to fixture 2020-11-05 11:42:22 +02:00
SX
93c509d1d9 Better tests for SC placement between networks 2020-10-31 04:43:37 +02:00
SX
1a83a03ad0 Test SC digging for nil cable network use
Check network table before attempting to use it
2020-10-31 04:43:35 +02:00
SX
977913c785 Basic tests for SC, cleaner world fixture management 2020-10-31 04:43:24 +02:00
SX
d206956810 Destroy network if ref switch disappears, cleanup switching station code
Remove rest of SP_nodes from code, it does not contain anything

Reset switch infotext, export machine_tiers

Add tests for cable building between active networks

Remove all networks when cable is placed between networks

Fix SC connectivity issues
2020-10-31 04:43:16 +02:00
SX
8c5aca5856 Net building tests
Fix few cable place/dig issues

Tests for machine build/dig

Fix machine build/dig bugs

Fix test for machine building

Fix machines acting like cables when placed

Inline fixtures for building/digging tests

fix ignored luacheck warnings

(#105)

fix long lines

(#105)

Add more tests for bugs found

Fix tests, add minetest.get_us_time (implement using socket.gettime)
2020-10-31 04:42:24 +02:00
SX
16f0683c21 Network node placement, utilize locals for frequent names
(#95) Place/remove network nodes. Cleanup sw_pos

(#96) SC infotext / reduce timeout ABM workload
2020-10-31 04:41:45 +02:00
SX
11fe7a7bf7 Add machines to all_nodes, no holes in arrays, check if node is added already
Comment out debug prints

Network node place/dig, simple remove_network test

Luacheck warnings

Fix network check

Fix overridden global table
2020-10-31 04:38:21 +02:00
SX
193447ea20 Tests for network constructor
Cleanup network.lua

Add minetest vector.lua

Add tests for network constructor
2020-10-31 04:38:01 +02:00
SX
f66c644fce Remove metadata for supply,demand,battery_count,battery_charge,battery_charge_max
Remove switching station from networks

Disable few debug prints, add removed machines to LBM

clear_networks refatoring #95

Functions remove_network_node and add_network_branch #95

Fix undef network_id, remove flatten #95
2020-10-31 04:37:21 +02:00
SX
c08732cd87 Fix digiline event and luacheck warnings
Add fake get_modpath for busted
2020-10-31 04:37:12 +02:00
SX
79233d764a Add busted unit testing for technic
Fix test framework and luacheck, Add metadata cleanup ABM

Added busted and contentdb badges
2020-10-31 04:35:35 +02:00