Permalink
Browse files

hello world robot test

  • Loading branch information...
1 parent e75ee49 commit f79e421842240fa9d22c948609aa5fd026674980 @gyst gyst committed Apr 5, 2013
Showing with 43 additions and 5 deletions.
  1. +1 −1 .travis.yml
  2. +8 −2 Makefile
  3. +1 −0 buildout.cfg
  4. +15 −0 devel.cfg
  5. +1 −1 setup.py
  6. +8 −1 src/plonesocial/suite/testing.py
  7. +9 −0 src/plonesocial/suite/tests/hello_world.robot
View
@@ -1,6 +1,6 @@
language: python
python: 2.7
-install: make buildout
+install: make travis
script: make test
notifications:
email: guido.stevens@cosent.net
View
@@ -1,12 +1,18 @@
-default: buildout test
+default: devel test
-buildout: bin/buildout buildout-cache/downloads
+devel: bin/buildout buildout-cache/downloads
+ bin/buildout -c devel.cfg -N -t 3
+
+travis: bin/buildout buildout-cache/downloads
bin/buildout -c buildout.cfg -N -t 3
test:
bin/test -s plonesocial.suite -s plonesocial.microblog -s plonesocial.activitystream -s plonesocial.network
bin/flake8 src
+predepends:
+ sudo apt-get install -y firefox
+
bin/buildout: bin/python
bin/easy_install zc.buildout==1.6.3
bin/easy_install distribute==0.6.28
View
@@ -36,3 +36,4 @@ eggs = flake8
${instance:eggs}
entry-points =
flake8=flake8.run:main
+
View
@@ -0,0 +1,15 @@
+[buildout]
+extends = buildout.cfg
+
+parts += robot
+
+allow-hosts +=
+ code.google.com
+ robotframework.googlecode.com
+
+[robot]
+recipe = zc.recipe.egg
+eggs =
+ Pillow
+ ${test:eggs}
+ plone.app.robotframework
View
@@ -43,7 +43,7 @@
'plone.api',
# -*- Extra requirements: -*-
],
- extras_require={'test': ['plone.app.testing']},
+ extras_require={'test': ['plone.app.testing', 'plone.app.robotframework']},
entry_points="""
# -*- Entry points: -*-
[z3c.autoinclude.plugin]
@@ -1,8 +1,10 @@
from plone.app.testing import PLONE_FIXTURE
from plone.app.testing import PloneSandboxLayer
from plone.app.testing import IntegrationTesting
-#from plone.app.testing import FunctionalTesting
+from plone.app.testing import FunctionalTesting
+from plone.app.robotframework.testing import AUTOLOGIN_LIBRARY_FIXTURE
from plone.app.testing import applyProfile
+from plone.testing import z2
from zope.configuration import xmlconfig
@@ -35,6 +37,11 @@ def setUpPloneSite(self, portal):
applyProfile(portal, 'plonesocial.suite:demo')
PLONESOCIAL_SUITE_FIXTURE = PlonesocialSuite()
+
PLONESOCIAL_SUITE_INTEGRATION_TESTING = \
IntegrationTesting(bases=(PLONESOCIAL_SUITE_FIXTURE, ),
name="PlonesocialSuite:Integration")
+
+PLONESOCIAL_ROBOT_TESTING = FunctionalTesting(
+ bases=(AUTOLOGIN_LIBRARY_FIXTURE, PLONESOCIAL_SUITE_FIXTURE, z2.ZSERVER),
+ name="PloneSocial:Robot")
@@ -0,0 +1,9 @@
+*** Settings ***
+Resource plone/app/robotframework/selenium.robot
+Test Setup Open test browser
+Test Teardown Close all browsers
+
+*** Test Cases ***
+Plone is installed
+ Go to ${PLONE_URL}
+ Page should contain Powered by Plone

0 comments on commit f79e421

Please sign in to comment.