Skip to content
This repository was archived by the owner on Dec 13, 2019. It is now read-only.
This repository was archived by the owner on Dec 13, 2019. It is now read-only.

Add Testrunner #83

@nothingismagick

Description

@nothingismagick

I started setting up a test-runner. The idea I am working with - that I hope is in-line with the Quasar method - is to allow the developer to quasar add test- which then creates a new test from a template. This new file is then found in the webpack loop of the dev-server, and mocha-runner executes the tests as part of webpack's dev-packaging job.

Here you can see the status: https://github.com/nothingismagick/quasar-cli/tree/test-runner

I have installed the deps and created a passing test-unit (that I have verified by adding a script value to the package.json - now, if you type "npm test" you will see that the tests are immediately run in the command line.

There is still a little bit of work to do, but really not that much to get the basics up and running. It should be possible to do "static" mocha/chai testing very soon. Testing within scope is likely to be a great deal more challenging. It seems that the vue.js team solved it using
https://github.com/zinserjan/mocha-webpack - but that brings its own entire webpack service - which isn't really appropriate here.

Here is their solution:
https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-unit-mocha

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions