on master help sign in
Testdriver not depending on servant-reflex
commit0e06dda1e0c9290861909c6c687937805e96079f authorGreg Hale <imalsogreg@gmail.com> dateTue 20 Sep 2016, 12:20 (10 years ago) parent620d615
6 files changed+58−16
.travis.yml+2−2 servant-reflex.cabal−14 testdriver/LICENSE.md+30 test/Servant/ReflexSpec.hs → testdriver/test/Servant/ReflexSpec.hs test/Spec.hs → testdriver/test/Spec.hs testdriver/testdriver.cabal+26
.travis.yml+2−2
@@ -38,6 +38,7 @@ install:
3838 - travis_retry cabal update -v
3939 - sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
4040 - deps/reflex-platform/work-on ./overrides-ghc.nix ./testserver --command "cd testserver && cabal configure && cabal build"
41+ - deps/reflex-platform/work-on ghc ./testdriver --command "cd testdriver && cabal configure && cabal build"
4142 - cd testserver && dist/build/back/back -p 8000 &
4243 - sleep 3
4344 - phantomjs --webdriver=127.0.0.1:4444 &
@@ -47,8 +48,7 @@ script:
4748 - git config --global user.email "travis-ci@example.com"
4849 - git config --global user.name "Travis-CI"
4950 - ./build.sh
50− - deps/reflex-platform/work-on ./overrides-ghc.nix ./. --command "cabal configure --enable-tests && cabal build"
51− - dist/build/spec/spec
51+ - testdriver/dist/build/spec/spec
5252
5353cache:
5454 directories:
servant-reflex.cabal−14
@@ -50,17 +50,3 @@ executable example
5050 main-is: Example.hs
5151 other-modules: API
5252 hs-source-dirs: exec
53−
54−test-suite spec
55− type: exitcode-stdio-1.0
56− main-is: Spec.hs
57− hs-source-dirs: test
58− ghc-prof-options: -auto
59− ghc-options: -Wall -fwarn-tabs -O2 -threaded
60− other-modules:
61− default-language: Haskell2010
62− build-depends: base,
63− hspec,
64− hspec-webdriver,
65− text,
66− webdriver
testdriver/LICENSE.mdnew file+30
@@ -0,0 +1,30 @@
1+Copyright Greg Hale (c) 2016
2+
3+All rights reserved.
4+
5+Redistribution and use in source and binary forms, with or without
6+modification, are permitted provided that the following conditions are met:
7+
8+ * Redistributions of source code must retain the above copyright
9+ notice, this list of conditions and the following disclaimer.
10+
11+ * Redistributions in binary form must reproduce the above
12+ copyright notice, this list of conditions and the following
13+ disclaimer in the documentation and/or other materials provided
14+ with the distribution.
15+
16+ * Neither the name of Greg Hale nor the names of other
17+ contributors may be used to endorse or promote products derived
18+ from this software without specific prior written permission.
19+
20+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
test/Servant/ReflexSpec.hs → testdriver/test/Servant/ReflexSpec.hsrenamed

The content is the same.

test/Spec.hs → testdriver/test/Spec.hsrenamed

The content is the same.

testdriver/testdriver.cabalnew file+26
@@ -0,0 +1,26 @@
1+Name: testdriver
2+Version: 0.2
3+Synopsis: Selenium test driver for Servant reflex
4+Description: Servant reflex API generator
5+License: AllRightsReserved
6+License-file: LICENSE.md
7+Author: Greg Hale, Doug Beardsley
8+Maintainer: imalsogreg@gmail.com
9+Stability: Experimental
10+Category: Web
11+Build-type: Simple
12+Cabal-version: >=1.10
13+
14+executable spec
15+ type: exitcode-stdio-1.0
16+ main-is: Spec.hs
17+ hs-source-dirs: test
18+ ghc-prof-options: -auto
19+ ghc-options: -Wall -fwarn-tabs -O2 -threaded
20+ other-modules:
21+ default-language: Haskell2010
22+ build-depends: base,
23+ hspec,
24+ hspec-webdriver,
25+ text,
26+ webdriver