Code Monkey home page Code Monkey logo

openmrs-distro-referenceapplication's Introduction

openmrs-distro-referenceapplication

master (platform-2.0.x): Build Status

platform-2.1.x: Build Status

Build Status

Running locally with Vagrant

https://wiki.openmrs.org/x/CIC3Ag

Running ui-tests locally:

By default tests are run with Firefox 42.0 (download here), so please be sure to have it installed. Also tests are run against http://int02.openmrs.org/openmrs so confirm it is accessible from your machine. It is also possible that tests start failing due to int02.openmrs.org being redeployed. If it happens, please wait for int02 to be available again and run tests again.

  1. Clone the repo
  2. Go to the ui-tests directory using command line
  3. Run mvn clean install -Prun-all-tests

Running ui-tests on Travis CI with SauceLabs

This project contains configuration for running tests on Travis CI with SauceLabs. These platforms provide free plan for Open Source projects.

If you want to know why a test fails you can view logs, screenshots and even screencasts on SauceLabs and see build logs on Travis CI.

To setup Continuous Integration on your fork, execute following steps:

  1. Create accounts on Travis CI(it has to be synced with Github owner of fork repository) and SauceLabs
  2. Enable CI on your fork repository on Travis CI (URL is like https://travis-ci.org/profile/${travis_username})
  3. Get your SauceLabs access key on 'My Account' view (current URL is https://saucelabs.com/beta/users/${saulabs_username})
  4. Add Environment variables to your repository on Travis.org:
  • 'SAUCELABS_USERNAME' equal to your SauceLabs username
  • 'SAUCELABS_ACCESSKEY' equal to access key you got in step 3.

Guide for adding environment variables from official Travis CI documentation 5. Push any commit to your master branch to trigger Travis CI build.

And that's it!

If you would like to setup a similar configuraiton for your distribution, please have a look at .travis.yml. The test server is created using openmrs-sdk:build-distro and started with docker-compose up on Travis-CI.

Travis-CI creates a tunnel to SauceLabs, which allows SauceLabs to access the test server and execute tests against that server in a browser. In order to speed up the build, we always run 5 UI tests in parallel using agents provided by SauceLabs. The test server is automatically terminated by Travis-CI once tests are done.

openmrs-distro-referenceapplication's People

Contributors

rkorytkowski avatar openmrs-bot avatar tomaszmueller avatar djazayeri avatar dkayiwa avatar nataliaplonka avatar leebreisacher avatar wluyima avatar adamgrzybkowski avatar mogoodrich avatar tmarzeion avatar pgutkowski avatar k-joseph avatar breeze773 avatar michalslawin avatar 0zge avatar yancmo avatar tharunya avatar robbyoconnor avatar cintiadr avatar cvortmann avatar endeepak avatar jkondrat avatar zak905 avatar surangak avatar geoff-wasilwa avatar cardy31 avatar alexisduque avatar qszhuan avatar maurya avatar

Watchers

James Cloos avatar Mohit Goyal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.