Skip to content

duthils/greglink

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Greglink

Simple test case management webapp, loosely inspired by Jekyll. Greglink takes a "test directory", runs all the files through markdown and shows the tests that need to be executed on the web site.

Setup

get the code:

git clone git://github.com/gelendir/greglink

install the python dependencies:

cd greglink
virtualenv2 env
source env/bin/activate
pip install -r requirements.txt

create config file:

cp greglink/config/default_config.py localconfig.py

edit config file:

HOST = '0.0.0.0'
PORT = 5000
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/greglink.db'
TEST_ROOT = '/tmp/greglink_tests'

setup database:

CONFIG_FILE=/path/to/localconfig.py python setup.py

run the webapp:

CONFIG_FILE=/path/to/localconfig.py python app.py

Writing tests

All tests are written in markdown with the '.md' file extension. Tests are then placed in the test folder (in the example above, this would be /tmp/greglink_tests). Here's an example of a test file that we will name test1.md:

---
id: test1
title: Lorem Ipsum
---

Prerequis
=========

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dapibus egestas vehicula. Sed et sem ante. Cras ante dolor, consectetur nec cursus sit amet, consequat ut metus. Phasellus vehicula libero a nibh iaculis auctor. Nam semper placerat nisl, euismod faucibus diam ornare vel. Nulla tempus ultrices mollis. Praesent sapien massa, dictum ut interdum et, sodales et velit. Phasellus ac neque nibh, vitae fermentum odio. Suspendisse eget suscipit dolor. Nunc auctor pretium viverra. Aenean lacinia tincidunt enim ullamcorper venenatis. Nunc luctus quam eget odio facilisis dignissim. 

Execution
=========

Etape 1
-------

Fusce vitae risus sed dolor faucibus lobortis
*Resultat*: enean aliquam, justo eget ornare fermentum, sapien orci porta ipsum, in imperdiet odio dolor ac sapien

Etape 2
-------

Aliquam at dui leo, at ullamcorper arcu
*Resultat*: Cras egestas eros vel arcu faucibus vitae porta nisi tempus

Etape 3
-------

Donec sed mi id magna adipiscing semper sit amet sit amet tortor
*Resultat*: Morbi vel egestas ante

Once the test is written and copied into the test folder, you can execute the test on the web site.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.0%
  • CSS 31.9%
  • PHP 5.7%
  • Python 5.4%