UNPKG

generator-confit

Version:

Yeoman generator for creating the development process, tools and a sample project for current-generation web applications

40 lines (33 loc) 1.77 kB
testSystem: # unsupported: # - criteria: # buildJS.framework[0]: AngularJS 2.x # message: '**Unsupported** Angular2 does not yet support Protractor via Firefox. See https://github.com/angular/zone.js/issues/234#issuecomment-189115330' packages: - <<: *pkg_protractor - <<: *pkg_jasmine-reporters - <<: *pkg_jasmine-spec-reporter - <<: *pkg_@types/selenium-webdriver readme: extensionPoint: testSystem: > `npm run test:system` can be extended by modifying <%= link(paths.config.configDir + resources.testSystem.configSubDir + 'protractor.conf.js') %>. This task uses Protractor to run Jasmine2 test specs (located in `<%= paths.input.modulesDir %>**/<%= paths.input.systemTestDir %>`) against the development web server URL. tasks: - name: test:system tasks: ['npm-run-all -p -r build:dev "test:protractor -- --baseUrl=<%= serverDev.protocol %>://<%= serverDev.hostname %>:<%= serverDev.port %>/"'] description: Starts the development web server and runs Protractor tests features: - name: test:system:prod tasks: ['npm-run-all build -p -r serve:prod test:protractor'] description: Builds the production site, starts the production web server and runs Protractor tests features: - name: test:protractor tasks: ['cross-env NODE_ENV=test protractor <%= paths.config.configDir + resources.testSystem.configSubDir %>protractor.conf.js'] description: Run browser tests against the *development* web server (the development server **must** be running) features: templateFiles: - src: protractor.conf.js.tpl dest: <%= paths.config.configDir + resources.testSystem.configSubDir%>protractor.conf.js overwrite: true