From 2f3c8648289bb4e22eee5f8ff8d27afca6592fa4 Mon Sep 17 00:00:00 2001 From: roboo Date: Sun, 21 Aug 2016 21:50:38 +0200 Subject: Windows and appveyor support for tests --- spec/show_spec.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'spec/show_spec.lua') diff --git a/spec/show_spec.lua b/spec/show_spec.lua index f528a6de..915129ae 100644 --- a/spec/show_spec.lua +++ b/spec/show_spec.lua @@ -20,10 +20,12 @@ describe("LuaRocks show tests #blackbox #b_show", function() it("LuaRocks show luacov", function() local output = run.luarocks("show luacov") + assert.is.truthy(output:match("LuaCov")) end) it("LuaRocks show modules of luacov", function() local output = run.luarocks("show --modules luacov") + assert.is.truthy(output:match("luacovluacov.defaultsluacov.reporterluacov.reporter.defaultluacov.runnerluacov.statsluacov.tick")) end) it("LuaRocks show dependencies of luacov", function() @@ -32,10 +34,12 @@ describe("LuaRocks show tests #blackbox #b_show", function() it("LuaRocks show rockspec of luacov", function() local output = run.luarocks("show --rockspec luacov") + assert.is.truthy(output:match("luacov-0.11.0-1.rockspec")) end) it("LuaRocks show mversion of luacov", function() local output = run.luarocks("show --mversion luacov") + assert.is.truthy(output:match("0.11.0--1")) end) it("LuaRocks show rock tree of luacov", function() @@ -49,6 +53,6 @@ describe("LuaRocks show tests #blackbox #b_show", function() it("LuaRocks show old version of luacov", function() run.luarocks("install luacov 0.11.0") - run.luarocks("show luacov 0.11.0") + run.luarocks_bool("show luacov 0.11.0") end) end) -- cgit v1.2.3-55-g6feb From c22227e0e0bdf27e273d9faee7955686ceb4724c Mon Sep 17 00:00:00 2001 From: roboo Date: Sun, 21 Aug 2016 22:20:23 +0200 Subject: Fix of show test --- spec/show_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/show_spec.lua') diff --git a/spec/show_spec.lua b/spec/show_spec.lua index 915129ae..b2cdc07e 100644 --- a/spec/show_spec.lua +++ b/spec/show_spec.lua @@ -34,7 +34,7 @@ describe("LuaRocks show tests #blackbox #b_show", function() it("LuaRocks show rockspec of luacov", function() local output = run.luarocks("show --rockspec luacov") - assert.is.truthy(output:match("luacov-0.11.0-1.rockspec")) + assert.is.truthy(output:match("luacov--0.11.0--1.rockspec")) end) it("LuaRocks show mversion of luacov", function() -- cgit v1.2.3-55-g6feb