Quasar: [Request] Tests configuration

Created on 24 May 2017  路  5Comments  路  Source: quasarframework/quasar

Hi @rstoenescu ,
I was thinking that it would be really useful to provide some configurations for unit and e2e tests.

Most of test and Webpack configuration is already available in the vue-cli webpack template.

In particular, it would be great to have configured npm scripts to:

  • npm run unit: Unit tests run in PhantomJS with Karma + Mocha + karma-webpack.

    • Supports ES2015+ in test files.
    • Supports all webpack loaders.
    • Easy mock injection.
  • npm run e2e: End-to-end tests with Nightwatch.

    • Run tests in multiple browsers in parallel.
    • Works with one command out of the box:
    • Selenium and chromedriver dependencies automatically handled.
    • Automatically spawns the Selenium server.

What do you think about this? Is this something you could spend some time on, maybe targeting 0.15 version?

Thanks again for your work on Quasar :)

Most helpful comment

Hi,

Yes, this was available some time ago until the switch to Vue 2.0. It got removed due to some issues with the router but it's on the roadmap to bring it back again.

Closing bug since the default template repo would be more appropriate for this and is duplicate of https://github.com/quasarframework/quasar-template-default/issues/4.

Thanks for the kind words and stay tuned for updates!

Cheers,
Razvan

All 5 comments

Hi,

Yes, this was available some time ago until the switch to Vue 2.0. It got removed due to some issues with the router but it's on the roadmap to bring it back again.

Closing bug since the default template repo would be more appropriate for this and is duplicate of https://github.com/quasarframework/quasar-template-default/issues/4.

Thanks for the kind words and stay tuned for updates!

Cheers,
Razvan

Hi, @rstoenescu! Is there any news about tests using quasar?

Not yet, sorry.

I am having a very big problem with installing unit test for project created by quasar cli. :( I can not integrate unit tests into a project

@diepvv try using this template https://github.com/Arushi-Jain/quasar-starter-kit for your project.
it downloads the dependencies on it's own and you just have to use " npm run test "

Was this page helpful?
0 / 5 - 0 ratings