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

Lists all specs file name but does not run the failed test #43

Open
ghost opened this issue Jun 28, 2018 · 3 comments
Open

Lists all specs file name but does not run the failed test #43

ghost opened this issue Jun 28, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Jun 28, 2018

Hello,
I have Angular 6 (Universal, with .Net template).

Seems like protractor re-try lists "All" the specs file but does not actually run the failed tests:

Re-running tests , attempt : 1
Re-running the following test files : C:\projects\stash\xxx\xxxx\src\xxxxx\ClientApp\e2e\src\specs\article\article.e2e-spec.ts,C:\projects\stash\xxx\xxxx\src\xxxx\ClientApp\e2e\src\specs\consumer\my-page\my-page-delete-saved-progress-user-interaction.e2e-spec.ts,C:\projects\stash\xxx\xxxx\src\xxxx\ClientApp\e2e\src\specs\consumer\xxxx\my-page-load-progress-user-interaction.e2e-spec.ts,

my protractor config is as below:

Any ideas?

// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts

const { SpecReporter } = require('jasmine-spec-reporter');
var retry = require('protractor-retry').retry;
const appSettings = require('./e2e-settings.json');
const {
  seedPageData,
  cleanUpSeededPageData

} = require('./mongodb-setup');

const NUMBER_OF_RETRIES = 2;
exports.config = {
  rootElement: 'app',
  getPageTimeout: 100000,
  allScriptsTimeout: 100000,
  specs: [
    './src/**/*.e2e-spec.ts'
  ],
  capabilities: {
    browserName: 'chrome',
    chromeOptions: {
      args: ["--disable-browser-side-navigation"]
    }
  },
  directConnect: true,
  baseUrl: appSettings.SpaUrl,
  framework: 'jasmine',
  jasmineNodeOpts: {
    showColors: true,
    defaultTimeoutInterval: 50000,
    print: function () {
    }
  },
  params: {
    locale: appSettings.locale
  },
  beforeLaunch: function () {
    require('ts-node').register({
      project: require('path').join(__dirname, './tsconfig.e2e.json')
    });
    return cleanUpSeededPageData(appSettings.mongodbConnectionString, appSettings.mongodbDatabseName);
  },
  onPrepare: function () {
    retry.onPrepare();
    jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
    return seedPageData(appSettings.mongodbConnectionString, appSettings.mongodbDatabseName);
       

  },
  afterLaunch: function () {
    retry.afterLaunch(NUMBER_OF_RETRIES);
    return cleanUpSeededPageData(appSettings.mongodbConnectionString, appSettings.mongodbDatabseName);
  },
  onCleanUp: function (results) {
    retry.onCleanUp(results);
  }
};`
```

@dreuxl
Copy link
Contributor

dreuxl commented Jun 28, 2018

Hi @shivark

Are u launching / using the protractor retry pkg from a windows machine?
If yes unfortunately it s not yet supported. please see #16 for more infos.

Thanks

@dreuxl dreuxl closed this as completed Jun 28, 2018
@dreuxl dreuxl reopened this Jun 28, 2018
@ghost
Copy link
Author

ghost commented Jun 28, 2018

oh that's a shame!
Thanks.

@dreuxl
Copy link
Contributor

dreuxl commented Jun 29, 2018

thanks for your kind feedback.
PRs are welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant