Coder Social home page Coder Social 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 with OpenMRS SDK

Please follow the instructions at the OpenMRS SDK Wiki page. Set up a server with the Reference Application distribution.

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 https://qa-refapp.openmrs.org so confirm it is accessible from your machine. It is also possible that tests start failing due to qa-refapp being redeployed. If it happens, please wait for qa-refapp 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

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 configuration 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.

Running locally with Vagrant

As of March 2017, the resources for this method are outdated/ no longer maintained. https://wiki.openmrs.org/x/CIC3Ag

Writing test cases

While writing the code for the test cases, please, follow the instructions in the Code Style paragraph and the guidelines

openmrs-distro-referenceapplication's People

Contributors

0zge avatar adamgrzybkowski avatar breeze773 avatar cintiadr avatar cvortmann avatar djazayeri avatar dkayiwa avatar domenicodileo avatar endeepak avatar jkondrat avatar jwnasambu avatar k-joseph avatar leebreisacher avatar michalslawin avatar mogoodrich avatar nataliaplonka avatar openmrs-bot avatar pgutkowski avatar rbuisson avatar rkorytkowski avatar robbyoconnor avatar samuelmale avatar surangak avatar tendomart avatar tharunya avatar tmarzeion avatar tomaszmueller avatar wluyima avatar yancmo avatar zak905 avatar

Watchers

 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.