Migration of Unit test framework from Karma+Jasmine to Jest framework proposal document #38
arun1205
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
@arun1205 For improving test execution performance did we try this? For running this test case we can use nodejs image from circleci docker list which doesn't have any issues which are used by other sunbird BBs |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Introduction
This wiki recommends the migration of the current unit testing framework from Karma+Jasmine to a framework which is faster, compatible with newer versions of Ubuntu and angular.
Background & Problem statement
Currently, the Sourcing platform’s code uses Karma+Jasmine as a unit testing framework which fails whenever a newer version of Ubuntu image/angular is used.
Proposed Solution 1:
Karma+Jasmine needs to be updated to a newer version, so that with every consequent update of Ubuntu/Angular, the testing framework stays consistent with the newer versions of Ubuntu/Angular.
As a caveat, it needs to be noted that a lot of reverse engineering efforts needs to done while completing this implementation
Secondly, The time taken to run these tests after update will not be reduced substantially, since running of parallel tests is not efficient with Karma+Jasmine
Proposed Solution 2:
Other than the ones listed above, here are some more liked aspects of Jest
Source
Cons of Jest
Other than the ones listed above, here are some of the disliked aspects of Jest among developers
Source
Confluence document link : https://project-sunbird.atlassian.net/wiki/spaces/~6172572fa9897100700e621d/pages/3254943768/Migration+of+Unit+test+framework+from+Karma+Jasmine+to+Jest+framework+proposal
@vrayuluConclusion:
Beta Was this translation helpful? Give feedback.
All reactions