gemini-testing / gemini-teamcity Goto Github PK
View Code? Open in Web Editor NEWPlugin for Gemini which enables reporting test results to TeamCity.
License: Apache License 2.0
Plugin for Gemini which enables reporting test results to TeamCity.
License: Apache License 2.0
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
Hi @Saulis
Don't you want to move this plugin to gemini-testing organization? It will be much easier to maintain this package. Your owner rights will be saved.
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.
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.
Gemini 0.11.3.
This line:
return (eventData.suiteFullName.trim() + '.' +
throws error "Cant call method trim() of undefined", because there is no more "suiteFullName" fields. "suiteName" can be used instead
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.