Skip to content

Commit

Permalink
Merge pull request #255 from nfdi4plants/ui_tests
Browse files Browse the repository at this point in the history
UI tests
  • Loading branch information
Freymaurer authored Nov 16, 2023
2 parents feec750 + f8a4ceb commit b9e608a
Show file tree
Hide file tree
Showing 32 changed files with 4,449 additions and 70 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"fable": {
"version": "4.4.1",
"version": "4.5.0",
"commands": [
"fable"
]
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -364,3 +364,5 @@ tmp/
/tests/ARCtrl/js
/tests/FileSystem/js

/tests/UI/cypress/screenshots/Tests/Dictionary.cy.js
/tests/UI/ARCtrl
11 changes: 10 additions & 1 deletion build/TestTasks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ module private Helper =

module RunTests =

let runTestsUI = BuildTask.create "runTestsUI" [clean; build] {
let path = "tests/UI"
Trace.traceImportant "Start UI tests"
// transpile library for native access
run dotnet $"fable src/ARCtrl -o {path}/ARCtrl" ""
GenerateIndexJs.ARCtrl_generate($"{path}/ARCtrl")
run npx $"cypress run --component -P {path}" ""
}

let runTestsJsNative = BuildTask.create "runTestsJSNative" [clean; build] {
Trace.traceImportant "Start native JavaScript tests"
for path in ProjectInfo.jsTestProjects do
Expand All @@ -141,6 +150,6 @@ module RunTests =
|> Seq.iter dotnetRun
}

let runTests = BuildTask.create "RunTests" [clean; build; RunTests.runTestsJs; RunTests.runTestsJsNative; RunTests.runTestsDotnet] {
let runTests = BuildTask.create "RunTests" [clean; build; RunTests.runTestsJs; RunTests.runTestsJsNative; (*RunTests.runTestsUI;*) RunTests.runTestsDotnet] {
()
}
Loading

0 comments on commit b9e608a

Please sign in to comment.