SVEA Compression for Dual Universe
To get luarocks working properly with dependencies on Windows, here's one way to do it.
- Open Powershell and install scoop.sh
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Optional: Needed to run a remote script the first timeirm get.scoop.sh | iex
scoop install luarocks
Installs luarocks, a lua packaging managerluarocks install busted
Installs busted, a test runner frameworkluarocks install luacov
Installs luacov, a test coverage reporterluarocks install cluacov
Installs cluacov, a native (faster) addon for luacov- Close Powershell and restart any Visual Studio Code project you want busted to work in
- Open Visual Studio Code and open its Terminal (see file menu at top)
chcp
Shows your current code page, for example 850chcp 65001
Changes your code page to Utf-8, so you can see busteds output more clearly
busted
Runs all tests defined in the./.busted
filebusted -t [#end-to-end]
Runs all tests tagged as#end-to-end
(see/src/compression/LZWS_spec.lua
for example)busted -v
Verbose modebusted -c
Generates./luacov.stats.out
luacov
Generates./luacov.report.out