EmberJS unit test compared to AngularJS -


i’m planning build large spa lots of data (in grid). seems idea use mvc framework. looking @ angularjs , emberjs. there arguments both, seems me emberjs has advantages angular not. in particular, since have lots of data in grid, afraid choosing angular cause me performance issues.

however, unit testing important me.

i haven’t been able find information unit (not integration) testing of emberjs. ember worse choice angular if unit testing important? (as stands)?

please note talking unit tests, not integration tests. seems me if going build large spa, important test not surface of app, able test each component/part/class individually , mock out rest.

i've found unit testing in ember relatively straightforward.

the 2 things make sure understand in order successful writing ember unit tests.

first, need provide object container (e.g. ember.defaultcontainer instance) when create testing. container crux of ember's dependency injection mechanisms. need learn it.

second, need understand ember run loop in order make sure changes make in unit tests propagate (e.g. computed properties dependent keys becoming invalidated) before assert new value expect.

i highly recommend reviewing unit tests ember itself. find many useful techniques there.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -