1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-26 12:42:30 +03:00
guide/tests/Main.hs

45 lines
1.3 KiB
Haskell
Raw Normal View History

{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
2016-08-21 14:32:52 +03:00
module Main (main) where
import BasePrelude
-- Testing
2016-08-21 14:32:52 +03:00
import Test.Hspec
-- Tests
2016-08-21 14:32:52 +03:00
import qualified WebSpec
import qualified MarkdownSpec
2016-08-21 17:45:46 +03:00
import qualified MergeSpec
2016-08-21 14:32:52 +03:00
main :: IO ()
2016-08-21 14:32:52 +03:00
main = do
hspec $ do
MarkdownSpec.tests
2016-08-21 17:45:46 +03:00
MergeSpec.tests
-- TODO: it'd be nice if we could us WebSpec.tests in hspec as well,
-- but I don't know how to achieve the following:
-- * before WebSpec tests, the server is started
-- * after those tests, the server is killed
-- * if you Ctrl-C during the tests, the server is killed as well
WebSpec.tests
2016-08-21 14:32:52 +03:00
{- TODO
2016-08-18 03:49:56 +03:00
* noscript tests
* test on mobile
* test that there are no repetitive searches on the admin page
* test that admin CSS hasn't creeped into main CSS and vice-versa
* test that the server is throwing no errors whatsoever during the
execution of tests
2016-08-19 04:07:45 +03:00
* changes to item description must not persist when doing Cancel and
then Edit again
* test that pages are indeed cached
* test that changing some pages doesn't invalidate the entire cache
* Markdown tests (e.g. Markdown doesn't work in category names)
* test that nothing is messed up by things starting and ending with newlines
(the %js bug, see description of 'mustache')
2016-08-18 03:49:56 +03:00
-}