Skip to content

Commit

Permalink
Issue #690: updating busted tests to know about MRC display mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Nov 4, 2024
1 parent 291cad5 commit d68cdac
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/LocationT/LocationT_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ _G.MainControl = require("MainControl")
local DirTree = require("DirTree")
local ModuleA = require("ModuleA")
local LocationT = require("LocationT")
local MRC = require("MRC")
local concatTbl = table.concat
local cosmic = require("Cosmic"):singleton()
local getenv = os.getenv
local testDir = "spec/LocationT"

setenv_lmod_version()
local mrc = MRC:singleton()
mrc:set_display_mode("spider")
cosmic:assign("LMOD_SHOW_HIDDEN","no")
describe("Testing LocationT Class #LocationT.",
function()
it("build locationT and compare",
Expand Down
3 changes: 3 additions & 0 deletions spec/MName/MName_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ require("fileOps")

local MName = require("MName")
local ModuleA = require("ModuleA")
local mrc = require("MRC"):singleton()
local FrameStk = require("FrameStk")

local concatTbl = table.concat
local cosmic = require("Cosmic"):singleton()
local dbg = require("Dbg"):dbg()
local testDir = "spec/MName"
setenv_lmod_version()
mrc:set_display_mode("spider")
cosmic:assign("LMOD_SHOW_HIDDEN","no")
describe("Testing MName Class #MName.",
function()
it("Test finding modules with NVV files",
Expand Down
3 changes: 3 additions & 0 deletions spec/MRC/MRC_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ local cosmic = require("Cosmic"):singleton()
local dbg = require("Dbg"):dbg()
local testDir = "spec/MRC"
setenv_lmod_version()
local mrc = MRC:singleton()
mrc:set_display_mode("spider")
cosmic:assign("LMOD_SHOW_HIDDEN","no")

describe("Testing MRC class #MRC.",
function()
Expand Down
4 changes: 4 additions & 0 deletions spec/MainControl/MainControl_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ local ModuleA = require("ModuleA")
local cosmic = require("Cosmic"):singleton()
local dbg = require("Dbg")
local getenv = os.getenv
local mrc = require("MRC"):singleton()
local testDir = "spec/MainControl"
mrc:set_display_mode("spider")
cosmic:assign("LMOD_SHOW_HIDDEN","no")


setenv_lmod_version()
describe("Testing MainControl Class #MainControl.",
Expand Down
3 changes: 3 additions & 0 deletions spec/ModuleA/ModuleA_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ local FrameStk = require("FrameStk")
local dbg = require("Dbg"):dbg()
local concatTbl = table.concat
local cosmic = require("Cosmic"):singleton()
local mrc = require("MRC"):singleton()
local getenv = os.getenv
local testDir = "spec/ModuleA"
setenv_lmod_version()
cosmic:assign("LMOD_SHOW_HIDDEN","no")
mrc:set_display_mode("spider")
describe("Testing ModuleA Class #ModuleA.",
function()
it("Build moduleA from mf",
Expand Down
3 changes: 3 additions & 0 deletions spec/Spider/Spider_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ local concatTbl = table.concat
local cosmic = require("Cosmic"):singleton()
local dbg = require("Dbg"):dbg()
local getenv = os.getenv
local mrc = require("MRC"):singleton()
local testDir = "spec/Spider"
setenv_lmod_version()
mrc:set_display_mode("spider")
cosmic:assign("LMOD_SHOW_HIDDEN","no")
describe("Testing Spider Class #Spider.",
function()
it("Core directory Test",
Expand Down

0 comments on commit d68cdac

Please sign in to comment.