Coder Social home page Coder Social logo

gemini-teamcity's People

Contributors

andrey-skl avatar egavr avatar j0tunn avatar levonet avatar saulis avatar sipayrt avatar yeti-or avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gemini-teamcity's Issues

Doesn't report testFinished with gemini 5

We use [email protected]. Tests output with it looks like this:

##teamcity[testStarted name='Icon_Example_icons.some_icons.chrome' flowId='699af0983dac460483c5a066f2b02726' timestamp='2017-12-22T08:51:11.233']
(node:56286) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
✓ Icon Example icons some icons [chrome]
##teamcity[testStarted name='Icon_All_icons.all_icons.chrome' flowId='699af0983dac460483c5a066f2b02726' timestamp='2017-12-22T08:51:18.957']
(node:56291) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
⟳ Icon All icons all icons [chrome] will be retried. Retries left: 2
##teamcity[testStarted name='Icon_All_logos.all_logos.chrome' flowId='699af0983dac460483c5a066f2b02726' timestamp='2017-12-22T08:51:25.998']
(node:56292) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
✓ Icon All logos all logos [chrome]

No testFailed or testFinished messages emited.

Looks like there is no more endTest event, and it should be replaced with endState

If I change event name to endState here (https://github.com/gemini-testing/gemini-teamcity/blob/master/lib/plugin.js#L24), it works OK.

Available events: https://github.com/gemini-testing/gemini/blob/0dcf494b50148d3fcbe7db21745e8170aa682ca7/lib/constants/events.js

Every test reported as failed in 2.1.4

Sorry guys, that's truly my fault, but I used wrong event in #15 PR. It should be testResult Instead of endState

In endState there is no data.equal field, but it is in testResult event. So we have to fix it ASAP and republish.

State name is not reported to teamcity

I have a simple test like:

gemini.suite('Alert', function(suite) {
  suite
    .setUrl('/example-alert/index.html')
    .setCaptureElements('body > div')
    .capture('plain')
    .capture('hovered', function(actions, find) {
      actions.mouseMove(find('.alert__close'));
    });

Report looks like:

##teamcity[testStarted name='Alert.chrome']
##teamcity[testFinished name='Alert.chrome']
##teamcity[testStarted name='Alert.chrome']
##teamcity[testFinished name='Alert.chrome']
##teamcity[testStarted name='Alert.firefox']
##teamcity[testFinished name='Alert.firefox']
##teamcity[testStarted name='Alert.firefox']
##teamcity[testFinished name='Alert.firefox']

As you can see, suite name only is represented in test names, but state name (like "plain", "hovered") is missed.

Thats why teamcity thinks that I had ran all tests twice.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.