Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Running test files sequentially  #592

@mohsen1

Description

@mohsen1

I want each file (or describe block) runs and finish then next describe block starts running my tests in it. (isn't that default jasmine behavior?)

I have multiple files in my tests folder, here is my config file:

exports.config = {
    seleniumAddress: 'http://localhost:4444/wd/hub', // goes to profile
    specs: argv.f ? argv.f.split(' ') : ['protractor/tests/*Test.js'],

    baseUrl: config.base_url + '/platform/',

    jasmineNodeOpts: {
        showColors: true,
        defaultTimeoutInterval: 25000
    },

    onPrepare: function() {

When I pass argument to test runner to just test one file, it works perfect. I tried this for every file and it did work. Each file has one describe block. But when I don't pass the argument for test file to test all files, it fails. I put console.log statements to see which file is running first, but surprising all my console.logs was printed at the same time.

Does Protractor tries to run all files that matches the patters at the same time? How can I fix this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions