UNPKG

vuex-asr

Version:

* Version: 0.7.52 * License M.I.T. * [Online Documentation](https://vuex-asr.github.io/vuex-asr/) * author: Joris Wenting * email: vuex.asr@gmail.com * [linkedIn](https://www.linkedin.com/in/joriswenting/). * [contribute](https://vuex-asr.github.io/vuex-a

1 lines 2.32 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{205:function(t,e,s){"use strict";s.r(e);var a=s(0),r=Object(a.a)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"working-with-the-test-suite"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#working-with-the-test-suite","aria-hidden":"true"}},[t._v("#")]),t._v(" working with the test-suite")]),t._v(" "),s("p",[t._v("The repository includes a "),s("code",[t._v("test-suite")]),t._v(" with example files that are being tested with tests that are stored in "),s("code",[t._v("tests\\e2e\\specs")]),t._v(". The goal of these tests is to asses whether bindings (state, getters, mutations, actions) are actually made and functioning.")]),t._v(" "),s("p",[t._v("If you install the repository and run:")]),t._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function"}},[t._v("npm")]),t._v(" start serve\n")])])]),s("p",[t._v("Open the url provided by the server.")]),t._v(" "),s("h2",{attrs:{id:"automated-testing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#automated-testing","aria-hidden":"true"}},[t._v("#")]),t._v(" automated testing")]),t._v(" "),s("p",[t._v("To run the tests you could work with a headless version of chrome by running a docker instance:")]),t._v(" "),s("p",[t._v("First "),s("a",{attrs:{href:"https://hub.docker.com/?overlay=onboarding",target:"_blank",rel:"noopener noreferrer"}},[t._v("install docker"),s("OutboundLink")],1),t._v(" if you haven't done already.")]),t._v(" "),s("p",[t._v("Then run:")]),t._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[t._v("docker run -d -p "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("4444")]),t._v(":4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:3.141.59-vanadium\n")])])]),s("p",[t._v("You should be able to run the tests:")]),t._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function"}},[t._v("npm")]),t._v(" run test:e2e\n")])])])])}),[],!1,null,null,null);e.default=r.exports}}]);