Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.25 KB

README.md

File metadata and controls

29 lines (22 loc) · 1.25 KB

svea-lz

SVEA Compression for Dual Universe

Test Dependencies

First time setup

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 time
  • irm get.scoop.sh | iex
  • scoop install luarocks Installs luarocks, a lua packaging manager
  • luarocks install busted Installs busted, a test runner framework
  • luarocks install luacov Installs luacov, a test coverage reporter
  • luarocks 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 850
  • chcp 65001 Changes your code page to Utf-8, so you can see busteds output more clearly

Running tests

  • busted Runs all tests defined in the ./.busted file
  • busted -t [#end-to-end] Runs all tests tagged as #end-to-end (see /src/compression/LZWS_spec.lua for example)
  • busted -v Verbose mode
  • busted -c Generates ./luacov.stats.out
  • luacov Generates ./luacov.report.out