Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Marking each test in a suite as a test on Sauce Labs #51

Open
christian-bromann opened this issue May 25, 2018 · 4 comments
Open

Marking each test in a suite as a test on Sauce Labs #51

christian-bromann opened this issue May 25, 2018 · 4 comments
Labels

Comments

@christian-bromann
Copy link
Contributor

From @kandarp1691 on May 24, 2018 20:40

The problem

I have a suite of test which has 10 tests. Each suite starts with a describe() and each test starts with an it() as shown below:

describe('Suite of test', function(){
  it('Test 1', function(){
  
  }),

  it('Test 2', function(){
  
  }),

  it('Test 3', function(){
  
  })
})

Now in a case where Test 3 fails, sauce shows status failed with
Test Failed : Test 1

Is there any way to make sure that the failure message shows the correct message ?

Environment

  • WebdriverIO version: 4.12.0
  • Node.js version: 10.0.0
  • Standalone mode or wdio testrunner: wdio testrunner
  • if wdio testrunner, running synchronous or asynchronous tests: synchronous
  • Additional wdio packages used (if applicable):

Copied from original issue: webdriverio/webdriverio#2750

@christian-bromann
Copy link
Contributor Author

sauce shows status failed with

What do you mean by that? Screenshots? Do you use wdio-sauce-service?

@christian-bromann
Copy link
Contributor Author

From @kandarp1691 on May 25, 2018 15:27


screen shot 2018-05-25 at 9 22 36 am
screen shot 2018-05-25 at 9 25 54 am

I am using wdio-sauce-service 0.4.8. Even though the first test case doesnt fail, it bubbles it up on the failure message.

@christian-bromann
Copy link
Contributor Author

Seems that the suite title is not quite correct. Could be a service issue or an adapter issue. PRs welcome!

@kandarp1691
Copy link

Also, I had sauce labs come for training and tell us that each test was supposed to be run individually and not as a suite. I am unsure if thats the case or not.

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

No branches or pull requests

2 participants