You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Batman!
* fix wrong job name
* fix working dir paths
* fix node_modules path
* test other step order
* try other shell
* ...and another one
* rewrite test.sh
* try running a bash script instead
* and another attempt.
* make executable
* anpother try...
* fix workflow errors
* fix path
* Batman!
* added scenarios and made it work!!
* refactors and comments
* just fumbling around
* adfda
* adjust test scenarios for autoInstall
* x<vb<xb
* first try since a long time
* small fix
* fix path to vue-cli
* fix scenarios
* fix persist paths
* testing with quotes for the path
* removing unhelpful quotes
* New Test
* fixed indentation
* test with full setup
* 2nd full test
* bump jest version
* other docker image
* test with runinband
* test with airbnb/karma as well
* remove superfluous checkout
* run unit and e2e individually.
* fix eslint paths for test subdirs
* adjust for airbnb preset
* only lint e2e specs, config differences are unfixable.
* adding a small readme
* remove test.sh
not needed anymore
This folder contains test scenarios for the automated tests of the template on CircleCI.
4
+
5
+
Each `.json`file contains an object that represents a set of answers to the questions that vue-cli asks the user when installing the template.
6
+
7
+
With the code from `index.js`, we insert those answers into the metalsmith metadata and skip the inquirer questions, thus allowing us to run different test scenarios in CI without having to actually provide any answers to inquirer or to mock it.
8
+
9
+
## The scenarios
10
+
11
+
We currently have 3 scenrios set up:
12
+
13
+
1. 'minimal': it basically answers "no" to ever choice, so no router, no elint, no tests
14
+
2. 'full': It answers "yes" to every choice. With router, with linting (standard), with full tests (jest & e2e)
15
+
3. 'full-airbnb-karma': like 'full', but using airbnb eslint config instead od standard and karma instead of jest for unnit tests.
16
+
17
+
Other permutations might be worth testing to secure against edge cases, but this gives us a decent level of security over common combinations.
18
+
19
+
## How to use it?
20
+
21
+
Choosing a scenario is done through setting an ENV variable named `VUE_TEMPL_TEST`.
22
+
23
+
You can run a scenario yourself by running this in your terminal:
0 commit comments