Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change to jest? #251

Closed
larshp opened this issue Sep 30, 2018 · 7 comments
Closed

change to jest? #251

larshp opened this issue Sep 30, 2018 · 7 comments

Comments

@larshp
Copy link
Member

larshp commented Sep 30, 2018

can run tests in parallel?

https://jestjs.io/

also has built in coverage and watch features

@larshp
Copy link
Member Author

larshp commented Nov 30, 2018

seems that mocha is actually faster right now, closing

@larshp larshp closed this as completed Nov 30, 2018
@larshp larshp reopened this Jan 5, 2019
@larshp
Copy link
Member Author

larshp commented Mar 31, 2019

still slower, am I doing something wrong?

https://medium.com/dailyjs/javascript-test-runners-benchmark-3a78d4117b4

jestjs/jest#6694

@sbcgua
Copy link
Collaborator

sbcgua commented Mar 31, 2019

Hi Lars, why do you want to switch ? do abaplint tests take so long ?
I'm using jest for some of my own projects - it is very convenient. One package and you have runner, mocks, asserts and async tests. And coverage. All in one (although inside there are a lot of packages).
But ... most probably abaplint tests will require some adjustments to run on jest. And also having that it is type script ... it may have complications. Not sure, don't use typescript except minor tweaks for AL :)

@larshp
Copy link
Member Author

larshp commented Mar 31, 2019

just want something that runs faster

but looking at above links jest might be slower

@larshp
Copy link
Member Author

larshp commented Dec 4, 2020

looks like mocha 8 supports parallel execution, https://developer.ibm.com/articles/parallel-tests-mocha-v8/

runs in half the time, but reporter progress is not supported, and also not exclusive tests

@larshp
Copy link
Member Author

larshp commented Dec 4, 2020

adding a npm run test:parallel

@larshp
Copy link
Member Author

larshp commented Jun 9, 2021

nah

@larshp larshp closed this as completed Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants