-
-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·34 lines (28 loc) · 1.65 KB
/
test.sh
File metadata and controls
executable file
·34 lines (28 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
set -ex;
npm run build:generator
npx elm-test --compiler lamdera
(cd examples/routing && npm i && npm run build && npx elm-test --compiler lamdera)
(cd generator/dead-code-review && npx elm-test --compiler lamdera)
(cd generator/server-review && npx elm-test --compiler lamdera)
(cd generator/persistent-marking-agreement-test && npx elm-test --compiler lamdera)
(cd generator/review && npx elm-test --compiler lamdera)
npm run test:snapshot
elm-verify-examples --run-tests --elm-test-args '--compiler=lamdera'
(cd generator && npx vitest run)
# This tests for an error message until https://github.com/dillonkearns/elm-pages/issues/531 is fixed
(cd test-scripts && npm i && (npx elm-pages run src/TestInternalError.elm || true) | grep -q -- '-- Internal error ---------------')
(cd test-scripts && npx elm-pages run src/TestBinaryRead.elm)
# Stream tests - tests gzip, unzip, command stdin handling, etc.
(cd examples/end-to-end && npm i && npx elm-pages run script/src/StreamTests.elm)
# File/Script utility tests - tests file operations, optional, finally, etc.
(cd examples/end-to-end && npx elm-pages run script/src/FileTests.elm)
# Multipart tests - tests multipartBody encoding via busboy round-trip
(cd examples/end-to-end && npx elm-pages run script/src/MultipartTests.elm)
# Scaffold tests - verify AddRoute with form fields generates compilable code
# Uses end-to-end example which references local src/ via source-directories
(cd examples/end-to-end && \
npx elm-codegen install && \
npx elm-pages run script/src/AddRoute.elm TestScaffold name:text email:text && \
npx elm-pages gen && \
lamdera make app/Route/TestScaffold.elm && \
rm app/Route/TestScaffold.elm)