Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

js: introduced unit testing #1592

Merged
merged 1 commit into from
Jan 18, 2018
Merged

js: introduced unit testing #1592

merged 1 commit into from
Jan 18, 2018

Conversation

vitoravelino
Copy link
Contributor

We are introducing the ability of writing javascript unit tests. Until now,
this wasn't possible.

To achieve that we decided to go with the mocha + webpack approach that
uses the mocha-webpack package. As the assertion library we choose
expect.

To run the tests you can simply type yarn test. And if you want the to check
the coverage, you can type yarn coverage.

There still stuff to be improved. The .vue files coverage does not work
properly and this is something that needs investigation.

@vitoravelino vitoravelino force-pushed the js-unit-tests branch 3 times, most recently from 24927f2 to 8beff33 Compare January 16, 2018 13:02
We are introducing the ability of writing javascript unit tests. Until now,
this wasn't possible.

To achieve that we decided to go with the mocha + webpack approach that
uses the `mocha-webpack` package. As the assertion library we choose
`expect`.

To run the tests you can simply type `yarn test`. And if you want the to check
the coverage, you can type `yarn coverage`.

There still stuff to be improved. The `.vue` files coverage does not work
properly and this is something that needs investigation.
@vitoravelino
Copy link
Contributor Author

@mssola good to be reviewed! :)

@mssola mssola merged commit 73435c3 into SUSE:master Jan 18, 2018
@vitoravelino vitoravelino deleted the js-unit-tests branch April 25, 2018 11:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants