Skip to content

Commit db263ed

Browse files
committed
Start implementing logic for auto update, but push to backlog for now
1 parent c5bf348 commit db263ed

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

build/TestTasks.fs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,28 @@ let FableTestPath_input = "tests/FsSpreadsheet.Tests"
1111

1212
module RunTests =
1313

14+
open Fake.Core
15+
16+
//let createFreshTestFiles = BuildTask.create "createFreshTestFiles" [] {
17+
// let testFilesPath = "./tests/TestUtils/TestFiles"
18+
// let source = System.IO.FileInfo(testFilesPath + @"/TestWorkbook_Excel.xlsx")
19+
// let scriptsFolder = "/Scripts"
20+
// let testFiles =
21+
// [|
22+
// @"/TestWorkbook_FsSpreadsheet.net.xlsx", @".\runFsSpreadsheet.fsx.cmd"
23+
// @"/TestWorkbook_FsSpreadsheet.js.xlsx", @".\runFsSpreadsheet.js.cmd"
24+
// @"/TestWorkbook_FableExceljs.xlsx", @".\runFableExceljs"
25+
// @"/TestWorkbook_ClosedXML.xlsx", @".\runClosedXml"
26+
// |]
27+
28+
// for testFile, script in testFiles do
29+
// let target = System.IO.FileInfo(testFilesPath + testFile)
30+
// if source.LastWriteTimeUtc > target.LastWriteTimeUtc then
31+
// let scriptFolderPath = testFilesPath + scriptsFolder
32+
// Trace.traceImportant $"Update `{testFile}` with `{script}`, as source file was updated since last transpilation."
33+
// run (createProcess script) "" scriptFolderPath
34+
//}
35+
1436
/// runs `npm test` in root.
1537
/// npm test consists of `test` and `pretest`
1638
/// check package.json in root for behavior
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)