Skip to content

Commit

Permalink
tests: drop nocov tags
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre committed Nov 24, 2024
1 parent f97569a commit 115e595
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion make/emulator.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)" && \
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/batterystat_spec.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe("BatteryState plugin tests #nocov", function()
describe("BatteryState plugin tests", function()
local MockTime, module, time

local stat = function() --luacheck: ignore
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/opds_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions spec/unit/readerhighlight_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/readerlink_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 115e595

Please sign in to comment.