1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-30 01:23:04 +03:00
guide/back/tests/Main.hs

44 lines
1.2 KiB
Haskell
Raw Normal View History

{-# LANGUAGE NoImplicitPrelude #-}
2016-08-21 14:32:52 +03:00
module Main (main) where
-- Shared imports
import Imports
-- 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
WebSpec.tests
2016-08-21 14:32:52 +03:00
Task/log monad (#264) * monad DiT * addition of monad DiT to gaider * add deriving * fix of exceptions * Logger.hs * logging * configs * fix * cathing of exception * logger structure * configs fixes * log format * add time format to config * add logs * add logs * add show instances to db actions * add log to matomo * add emptyOnExceptyon * fixing of tests * add test for logs * add test for api * add test for api * sdd tests to api * fix of tests * fix of tests * fix of errors * add api tests * add new tests for log * add new tests for log * add new tests for log * add new tests for log & api * ordering of API.hs * add test of traits to api * fixes to tests * fixes of test * add atributes to log * attributes to logs * fix to log * Fix proposals * Fix error level style * Try to fix travis tests * Add comment to servant error log * Revert openFile to check travis tests * Abstract withTempFile * Rework the way handlers are logged * Fix typos * Don't use pack * Add explicit export lists and warn about missing export lists * Fix comments * Get rid of useless H. * Make export lists consistent * Rewrite config comments * Log to stderr by default, not to /var/log/guide.log * Don't use module X * Rewrite Guider.Logger.Init slightly * No {- -} comments * Separate logTests from webspec module * Swap throwM with Di.Core.throw * Fix logging * No more .ghci * Formatting, etc * Remove loggers we're not going to use * Comment * Typo * Comments * searchQuery -> query It's called "query" in the API * Rename * More logging * Reorder things * Fix test compilation * Api -> ApiSpec * Remove constantly failing footer test * Rename logTest * Fix failing log test * TODO * We don't do caching anymore * Increase test time for move item up * Add haddocked test * Add uncommented function for test * Up haddock test * Add quotes * Remove ':' * Add curl stack * Delete test function * Up beforeHaddocked to 251 * Increase second threadDelay to 1 million * Check test fixes * Remove commented code * Return bracket function * Add comment
2019-02-26 08:40:42 +03:00
-- TODO: it'd be nice if we could do server-starting tests in hspec as well,
-- but I don't know how to achieve the following flow:
--
-- * before the tests, the server is started
-- * after the tests, the server is killed
-- * if you Ctrl-C during the tests, the server is killed as well
{- Tests left to write:
~~~~~~~~~~~~~~
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
* 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
-}