Closed Freymaurer closed 1 year ago
Example for mocha tests
tests/FSharpAux.Mocha.Tests
.
/fable
contains the fable transpiled tests and all fable transpiled source code in /fable/src
Main.js
is currently used as default entrypoint from mocha by specifying this folder as entry.runtestsfable
, which executes npm test
in root does the following in exactly this oder:
@kMutagene @omaus @HLWeil ready to merge i think
I'll take a detailed look tomorrow, especially regarding the packing workflow, but looks great so far 👌
I added a watchtests
fake tast to run ALL tests in watch mode in parallel:
Example startup:
Any changes to the test repos are propagated to the relevant test suits and live updated in the console 🎉
Amazing stuff! Just two quick questions:
Mocha Native Tests
point to FSharpAux.Core?
dotnet test
and a fable test
step, but the transpiled mocha tests
get executed in both cases. What's the rationale behind this?@HLWeil
Shouldn't the Mocha Native Tests point to FSharpAux.Core?
Yes, you are right, i connected the wrong node.
Also in the CI workflows, you have a dotnet test and a fable test step, but the transpiled mocha tests get executed in both cases. What's the rationale behind this?
I don't see what you mean. Right now we have the following fake tasks:
let me know if this clears this up
I made FSharpAux Fable compatible!
#if FABLE_COMPILER #else #endif ...
-logic i removed all code incompatible with Fable, without touching on the dotnet part.pack
build task to create an addition FSharpAux.Fable package, which includes the raw FSharp source files.runtestsfable
build task into main publishing pipelineTodo: