Tests are failing randomly

kerem's Avatar

kerem

09 Mar, 2015 02:59 PM

Hi Feodor,

Some of our test in the projects are failing randomly and we cannot determine why. They pass %100 times on local, but fails %80 at appveyor. Failings tests are the ones which make rest api calls. How should I debug this?

Project: nopcustom

Best,
Kerem

  1. Support Staff 1 Posted by Feodor Fitsner on 09 Mar, 2015 03:33 PM

    Feodor Fitsner's Avatar

    Hi Kerem,

    I can't see private projects unless you add me ([email blocked]) to collaborators.

    What API do those tests call? Is it the same tests failing every time? Are there any errors?

    -Feodor

  2. 2 Posted by kerem on 09 Mar, 2015 04:18 PM

    kerem's Avatar

    Hi Feodor. I added your email.

    The test makes simple webclient get operations and not always fails. I
    tried to build more than ten times and it passed one time. I think there is
    a http error but I could not debug it since the test code uses mock logger
    instance.

    By this time I disabled these test, so if you are going to check the
    project please use the history builds 8d50754f or earlier ones.

    Thanks,
    Kerem

  3. Support Staff 3 Posted by Feodor Fitsner on 09 Mar, 2015 04:24 PM

    Feodor Fitsner's Avatar

    Where is that API hosted?

    -Feodor

  4. 4 Posted by kerem on 09 Mar, 2015 04:48 PM

    kerem's Avatar
  5. Support Staff 5 Posted by Feodor Fitsner on 09 Mar, 2015 05:48 PM

    Feodor Fitsner's Avatar

    Hm, like you I can see nothing from test results.

    You should enable logging or throw exception when a call to that API fails.

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:54 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

16 Jul, 2019 04:51 AM
15 Jul, 2019 06:33 PM
15 Jul, 2019 06:09 PM
15 Jul, 2019 05:53 PM
15 Jul, 2019 05:46 PM