Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Feature: Add option "dependsOn" #1

Closed
victorjonsson opened this Issue Aug 12, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Owner

victorjonsson commented Aug 12, 2012

Add an option named something like "dependsOn". This options is used when running a specific test. If a test requires that the user is logged in you may put the login procedure in a separate test and refer to that test from other tests. eg:

var loginTest = new dokimon.Test(
  'loginTest',
  ...
);

var statusBarExists = new dokimon.Test(
  'statusBarExists',
  {
    dependOn : 'loginTest'
  }
  ...
);

If you then run dokimon -rs my-test-script.djs statusBarExists it will first execute the login test so that the login session exists when running the test statusBarExists

@victorjonsson victorjonsson added a commit that referenced this issue Feb 7, 2013

@victorjonsson victorjonsson New feature, issue #1 c844427
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment