angularjs - Unit testing in Angular -
angularjs - Unit testing in Angular -
as understand scenario-runner deprecated. run unit tests in karma , e2e test in protractor.
for me feels wrong start browser(karma) running unit tests. assumptions correct? how test angular applications?
a practised standard when come testing angular utilize phantomjs headless browser unit testing. whatever way @ need javascript engine , running before can test. however, using headless browser lot quicker there no ui.
i utilize karma, chai , sinon (for mocking) - dev workflow uses phantomjs , ci , release builds utilize actual browsers ie, chrome etc utilize browserstack when ci builds run.
you can see illustration of tests , karma config here
you want @ grunt / gulp manage process of testing.
anything after in particular around testing?
angularjs karma-runner protractor
Comments
Post a Comment