tests: drop nocov tags

This commit is contained in:
Benoit Pierre
2024-11-24 23:05:41 +01:00
committed by Frans de Jonge
parent 7188ce3bb1
commit de676292f6
5 changed files with 8 additions and 8 deletions

View File

@@ -47,7 +47,7 @@ coverage: coverage-summary
coverage-run: all test-data $(INSTALL_DIR)/koreader/.luacov
rm -f $(addprefix $(INSTALL_DIR)/koreader/,$(COVERAGE_STATS) $(COVERAGE_REPORT))
# Run tests.
$(RUNTESTS) $(INSTALL_DIR)/koreader front --coverage $(if $(filter undefined,$(flavor T)),--tags=!nocov,$T)
$(RUNTESTS) $(INSTALL_DIR)/koreader front --coverage $T
# Aggregate statistics.
cd $(INSTALL_DIR)/koreader && \
eval "$$($(LUAROCKS_BINARY) path)" && \

View File

@@ -1,4 +1,4 @@
describe("BatteryState plugin tests #nocov", function()
describe("BatteryState plugin tests", function()
local MockTime, module, time
local stat = function() --luacheck: ignore

View File

@@ -257,7 +257,7 @@ local facet_sample = [[
</feed>
]]
describe("OPDS module #nocov", function()
describe("OPDS module", function()
local socketutil
local OPDSParser, OPDSBrowser
local orig_path, orig_lbt, orig_ltt, orig_fbt, orig_ftt

View File

@@ -157,7 +157,7 @@ describe("Readerhighlight module", function()
readerui.highlight:clear()
readerui.annotation.annotations = {}
end)
it("should response on tap gesture #nocov", function()
it("should response on tap gesture", function()
tap_highlight_text(readerui,
Geom:new{ x = 260, y = 70 },
Geom:new{ x = 260, y = 150 },
@@ -185,7 +185,7 @@ describe("Readerhighlight module", function()
readerui.highlight:clear()
readerui.annotation.annotations = {}
end)
it("should respond to tap gesture #nocov", function()
it("should respond to tap gesture", function()
tap_highlight_text(readerui, Geom:new{ x = 260, y = 70 }, Geom:new{ x = 260, y = 150 }, Geom:new{ x = 280, y = 110 })
screenshot("reader_tap_highlight_text_pdf_scanned.png")
end)
@@ -215,7 +215,7 @@ describe("Readerhighlight module", function()
-- We haven't torn it down yet
ReaderUI.instance = readerui
end)
it("should response on tap gesture #nocov", function()
it("should response on tap gesture", function()
tap_highlight_text(readerui, Geom:new{ x = 260, y = 70 }, Geom:new{ x = 260, y = 150 }, Geom:new{ x = 280, y = 110 })
screenshot("reader_tap_highlight_text_pdf_reflowed.png")
end)

View File

@@ -39,13 +39,13 @@ describe("ReaderLink module", function()
}
end)
it("should jump to links #nocov", function()
it("should jump to links", function()
readerui.rolling:onGotoPage(5)
readerui.link:onTap(nil, {pos = {x = 320, y = 190}})
assert.is.same(37, readerui.rolling.current_page)
end)
it("should be able to go back after link jump #nocov", function()
it("should be able to go back after link jump", function()
readerui.rolling:onGotoPage(5)
readerui.link:onTap(nil, {pos = {x = 320, y = 190}})
assert.is.same(37, readerui.rolling.current_page)