mirror of
https://github.com/mdgriffith/elm-ui.git
synced 2024-11-22 03:32:16 +03:00
get test suite running again
This commit is contained in:
parent
82b36545f3
commit
262e7c57b6
6
elm.json
6
elm.json
@ -22,5 +22,7 @@
|
||||
"elm/json": "1.0.0 <= v < 2.0.0",
|
||||
"elm/virtual-dom": "1.0.0 <= v < 2.0.0"
|
||||
},
|
||||
"test-dependencies": {}
|
||||
}
|
||||
"test-dependencies": {
|
||||
"elm-explorations/test": "1.2.2 <= v < 2.0.0"
|
||||
}
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "elm-test",
|
||||
"test-render": "node tests/automation/run.js --chrome",
|
||||
"test-render-sauce": "source sauce.env; node tests/automation/run.js --sauce",
|
||||
"test-render": "node tests/rendering/automation/run.js --chrome",
|
||||
"test-render-sauce": "source sauce.env; node tests/rendering/automation/run.js --sauce",
|
||||
"bench": "node benchmarks/runtime/index.js"
|
||||
},
|
||||
"repository": {
|
||||
@ -22,7 +22,7 @@
|
||||
"dependencies": {
|
||||
"chalk": "^2.4.2",
|
||||
"commander": "^2.20.0",
|
||||
"elm-test": "^0.19.0-rev6",
|
||||
"elm-test": "^0.19.1-revision2",
|
||||
"node-elm-compiler": "^5.0.3",
|
||||
"puppeteer": "^1.18.0",
|
||||
"selenium-webdriver": "^4.0.0-alpha.4"
|
||||
|
@ -173,10 +173,10 @@ async function run_test(driver, url) {
|
||||
}
|
||||
console.log("Compiling tests")
|
||||
await compile_and_embed({
|
||||
template: "./tests/automation/templates/gather-styles.html",
|
||||
template: "./tests/rendering/automation/templates/gather-styles.html",
|
||||
target: "./tmp/test.html",
|
||||
elm: ["Tests/Run.elm"],
|
||||
elmOptions: { cwd: "./tests" }
|
||||
elm: ["src/Tests/Run.elm"],
|
||||
elmOptions: { cwd: "./tests/rendering" }
|
||||
})
|
||||
console.log("Done compiling")
|
||||
|
||||
@ -191,7 +191,7 @@ async function run_test(driver, url) {
|
||||
var results = []
|
||||
|
||||
// Publish to netlify
|
||||
childProcess.execSync("sh tests/automation/publish-file.sh", {
|
||||
childProcess.execSync("sh tests/rendering/automation/publish-file.sh", {
|
||||
env: {
|
||||
FILE: "test.html",
|
||||
BUILD: program.build,
|
@ -2,11 +2,9 @@
|
||||
"type": "application",
|
||||
"source-directories": [
|
||||
"src",
|
||||
"suite",
|
||||
"../src",
|
||||
"."
|
||||
"../../src"
|
||||
],
|
||||
"elm-version": "0.19.0",
|
||||
"elm-version": "0.19.1",
|
||||
"dependencies": {
|
||||
"direct": {
|
||||
"elm/browser": "1.0.0",
|
@ -1,4 +1,30 @@
|
||||
module Testable exposing (Attr(..), BoundingBox, Element(..), Found, LayoutContext(..), Location(..), Style, Surroundings, addAttribute, applyLabels, compareFormattedColor, createAttributeTest, createTest, formatColor, formatColorWithAlpha, getElementId, getIds, getSpacing, idAttr, levelToString, render, renderAttribute, renderElement, runTests, toTest)
|
||||
module Testable exposing
|
||||
( Attr(..)
|
||||
, BoundingBox
|
||||
, Element(..)
|
||||
, Found
|
||||
, LayoutContext(..)
|
||||
, Location(..)
|
||||
, Style
|
||||
, Surroundings
|
||||
, addAttribute
|
||||
, applyLabels
|
||||
, compareFormattedColor
|
||||
, createAttributeTest
|
||||
, createTest
|
||||
, formatColor
|
||||
, formatColorWithAlpha
|
||||
, getElementId
|
||||
, getIds
|
||||
, getSpacing
|
||||
, idAttr
|
||||
, levelToString
|
||||
, render
|
||||
, renderAttribute
|
||||
, renderElement
|
||||
, runTests
|
||||
, toTest
|
||||
)
|
||||
|
||||
{-| -}
|
||||
|
@ -1,4 +1,4 @@
|
||||
port module Tests.Run exposing (main)
|
||||
module Tests.Run exposing (main)
|
||||
|
||||
{-| -}
|
||||
|
@ -1,16 +0,0 @@
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"summary": "helpful summary of your project, less than 80 characters",
|
||||
"repository": "https://github.com/user/project.git",
|
||||
"license": "BSD3",
|
||||
"source-directories": [
|
||||
".",
|
||||
"../../src"
|
||||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"elm-lang/core": "5.1.1 <= v < 6.0.0",
|
||||
"elm-lang/html": "2.0.0 <= v < 3.0.0"
|
||||
},
|
||||
"elm-version": "0.18.0 <= v < 0.19.0"
|
||||
}
|
Loading…
Reference in New Issue
Block a user