ports/109777: [NEW PORT] www/py-webunit: Unit test your websites with code that acts like a web browser

Li-Wen Hsu lwhsu at lwhsu.org
Sat Mar 3 03:30:04 UTC 2007


>Number:         109777
>Category:       ports
>Synopsis:       [NEW PORT] www/py-webunit: Unit test your websites with code that acts like a web browser
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 03 03:30:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Li-Wen Hsu
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD jail0.lwhsu.csie.net 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Jan 26 00:04:54 CST 2007
>Description:
Webunit is a framework for unit testing websites:

Features in a nutshell:

1. Browser-like page fetching including fetching the images and stylesheets
   needed for a page and following redirects
2. Cookies stored and trackable (all automatically handled)
3. HTTP, HTTPS, GET, POST, basic auth all handled, control over expected status
   codes, ...
4. DOM parsing of pages to retrieve and analyse structure, including simple
   form re-posting
5. Two-line page-fetch followed by form-submit possible, with error checking
6. Ability to register error page content across multiple tests
7. Uses python's standard unittest module as the underlying framework

WWW:	http://www.python.org/pypi/webunit

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- py-webunit-1.3.8.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	py-webunit
#	py-webunit/pkg-descr
#	py-webunit/Makefile
#	py-webunit/pkg-plist
#	py-webunit/distinfo
#	py-webunit/files
#	py-webunit/files/patch-setup.py
#
echo c - py-webunit
mkdir -p py-webunit > /dev/null 2>&1
echo x - py-webunit/pkg-descr
sed 's/^X//' >py-webunit/pkg-descr << 'END-of-py-webunit/pkg-descr'
XWebunit is a framework for unit testing websites:
X
XFeatures in a nutshell:
X
X1. Browser-like page fetching including fetching the images and stylesheets
X   needed for a page and following redirects
X2. Cookies stored and trackable (all automatically handled)
X3. HTTP, HTTPS, GET, POST, basic auth all handled, control over expected status
X   codes, ...
X4. DOM parsing of pages to retrieve and analyse structure, including simple
X   form re-posting
X5. Two-line page-fetch followed by form-submit possible, with error checking
X6. Ability to register error page content across multiple tests
X7. Uses python's standard unittest module as the underlying framework
X
XWWW:	http://www.python.org/pypi/webunit
END-of-py-webunit/pkg-descr
echo x - py-webunit/Makefile
sed 's/^X//' >py-webunit/Makefile << 'END-of-py-webunit/Makefile'
X# New ports collection makefile for:	py-webunit
X# Date created:		Mar. 03, 2007
X# Whom:			Li-Wen Hsu <lwhsu at lwhsu.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	webunit
XPORTVERSION=	1.3.8
XCATEGORIES=	www python
XMASTER_SITES=	http://mechanicalcat.net/tech/webunit/ \
X		http://funkload.nuxeo.org/3dparty/
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
X
XMAINTAINER=	lwhsu at lwhsu.org
XCOMMENT=	Unit test your websites with code that acts like a web browser
X
XUSE_PYTHON=	yes
XUSE_PYDISTUTILS=	yes
X
XEXAMPLESDIR=	${TARGETDIR}/share/examples/py-${PORTNAME}
X
Xpost-install:
X	${MKDIR} ${EXAMPLESDIR}
X	${INSTALL_SCRIPT} ${WRKSRC}/run_tests ${EXAMPLESDIR}
X	${CP} -R ${WRKSRC}/demo ${EXAMPLESDIR}
X
X.include <bsd.port.mk>
END-of-py-webunit/Makefile
echo x - py-webunit/pkg-plist
sed 's/^X//' >py-webunit/pkg-plist << 'END-of-py-webunit/pkg-plist'
X%%PYTHON_SITELIBDIR%%/webunit/HTMLParser.py
X%%PYTHON_SITELIBDIR%%/webunit/HTMLParser.pyc
X%%PYTHON_SITELIBDIR%%/webunit/HTMLParser.pyo
X%%PYTHON_SITELIBDIR%%/webunit/IMGSucker.py
X%%PYTHON_SITELIBDIR%%/webunit/IMGSucker.pyc
X%%PYTHON_SITELIBDIR%%/webunit/IMGSucker.pyo
X%%PYTHON_SITELIBDIR%%/webunit/SimpleDOM.py
X%%PYTHON_SITELIBDIR%%/webunit/SimpleDOM.pyc
X%%PYTHON_SITELIBDIR%%/webunit/SimpleDOM.pyo
X%%PYTHON_SITELIBDIR%%/webunit/__init__.py
X%%PYTHON_SITELIBDIR%%/webunit/__init__.pyc
X%%PYTHON_SITELIBDIR%%/webunit/__init__.pyo
X%%PYTHON_SITELIBDIR%%/webunit/config.py
X%%PYTHON_SITELIBDIR%%/webunit/config.pyc
X%%PYTHON_SITELIBDIR%%/webunit/config.pyo
X%%PYTHON_SITELIBDIR%%/webunit/cookie.py
X%%PYTHON_SITELIBDIR%%/webunit/cookie.pyc
X%%PYTHON_SITELIBDIR%%/webunit/cookie.pyo
X%%PYTHON_SITELIBDIR%%/webunit/utility.py
X%%PYTHON_SITELIBDIR%%/webunit/utility.pyc
X%%PYTHON_SITELIBDIR%%/webunit/utility.pyo
X%%PYTHON_SITELIBDIR%%/webunit/webunittest.py
X%%PYTHON_SITELIBDIR%%/webunit/webunittest.pyc
X%%PYTHON_SITELIBDIR%%/webunit/webunittest.pyo
X at dirrm %%PYTHON_SITELIBDIR%%/webunit
X%%EXAMPLESDIR%%/run_tests
X%%EXAMPLESDIR%%/demo/__init__.py
X%%EXAMPLESDIR%%/demo/google.py
X%%EXAMPLESDIR%%/demo/python_org.py
X at dirrm %%EXAMPLESDIR%%/demo
X at dirrm %%EXAMPLESDIR%%
END-of-py-webunit/pkg-plist
echo x - py-webunit/distinfo
sed 's/^X//' >py-webunit/distinfo << 'END-of-py-webunit/distinfo'
XMD5 (webunit-1.3.8.tar.gz) = 97b9e6b5149dadce48b86adbf2db3b0a
XSHA256 (webunit-1.3.8.tar.gz) = 8f927380a507d9ccbbe0b05136e47eba62b875107bb2d829a9f90e0bd11531e8
XSIZE (webunit-1.3.8.tar.gz) = 22950
END-of-py-webunit/distinfo
echo c - py-webunit/files
mkdir -p py-webunit/files > /dev/null 2>&1
echo x - py-webunit/files/patch-setup.py
sed 's/^X//' >py-webunit/files/patch-setup.py << 'END-of-py-webunit/files/patch-setup.py'
X--- setup.py.orig	Sat Mar  3 03:16:17 2007
X+++ setup.py	Sat Mar  3 03:16:26 2007
X@@ -34,7 +34,7 @@
X     author_email = "richard at mechanicalcat.net",
X     url = 'http://mechanicalcat.net/tech/webunit/',
X     download_url = 'http://mechanicalcat.net/tech/webunit/webunit-%s.tar.gz'%__version__,
X-    packages = ['webunit', 'demo'],
X+    packages = ['webunit'],
X     classifiers = [
X         'Development Status :: 5 - Production/Stable',
X         'Environment :: Console',
END-of-py-webunit/files/patch-setup.py
exit
--- py-webunit-1.3.8.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list