Skip to content

Commit

Permalink
Start implementing logic for auto update, but push to backlog for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Oct 24, 2023
1 parent c5bf348 commit db263ed
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions build/TestTasks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,28 @@ let FableTestPath_input = "tests/FsSpreadsheet.Tests"

module RunTests =

open Fake.Core

//let createFreshTestFiles = BuildTask.create "createFreshTestFiles" [] {
// let testFilesPath = "./tests/TestUtils/TestFiles"
// let source = System.IO.FileInfo(testFilesPath + @"/TestWorkbook_Excel.xlsx")
// let scriptsFolder = "/Scripts"
// let testFiles =
// [|
// @"/TestWorkbook_FsSpreadsheet.net.xlsx", @".\runFsSpreadsheet.fsx.cmd"
// @"/TestWorkbook_FsSpreadsheet.js.xlsx", @".\runFsSpreadsheet.js.cmd"
// @"/TestWorkbook_FableExceljs.xlsx", @".\runFableExceljs"
// @"/TestWorkbook_ClosedXML.xlsx", @".\runClosedXml"
// |]

// for testFile, script in testFiles do
// let target = System.IO.FileInfo(testFilesPath + testFile)
// if source.LastWriteTimeUtc > target.LastWriteTimeUtc then
// let scriptFolderPath = testFilesPath + scriptsFolder
// Trace.traceImportant $"Update `{testFile}` with `{script}`, as source file was updated since last transpilation."
// run (createProcess script) "" scriptFolderPath
//}

/// runs `npm test` in root.
/// npm test consists of `test` and `pretest`
/// check package.json in root for behavior
Expand Down
Binary file modified tests/TestUtils/TestFiles/TestWorkbook_Excel.xlsx
Binary file not shown.
Binary file modified tests/TestUtils/TestFiles/TestWorkbook_FsSpreadsheet.net.xlsx
Binary file not shown.

0 comments on commit db263ed

Please sign in to comment.