Comments (10)
It looks like cargo might need to provide this information first :/ .
from cargo2junit.
Seems it includes it just fine in the JSON output:
{ "type": "suite", "event": "ok", "passed": 15, "failed": 0, "allowed_fail": 0, "ignored": 0, "measured": 0, "filtered_out": 0, "exec_time": 0.219172866 }
from cargo2junit.
I was thinking about per-test timings, not test suite level timings.
from cargo2junit.
Well, it would be a start though.
from cargo2junit.
Actually, we can get the per-test timings just fine: -Z unstable-options --format json --report-time
{ "type": "suite", "event": "started", "test_count": 2 }
{ "type": "test", "event": "started", "name": "can_get_health" }
{ "type": "test", "event": "started", "name": "can_get_index" }
{ "type": "test", "name": "can_get_health", "event": "ok", "exec_time": 0.039503535 }
{ "type": "test", "name": "can_get_index", "event": "ok", "exec_time": 0.029446912 }
{ "type": "suite", "event": "ok", "passed": 2, "failed": 0, "allowed_fail": 0, "ignored": 0, "measured": 0, "filtered_out": 0, "exec_time": 0.044548753 }
from cargo2junit.
Actually it seems to just work already in cargo2junit: -Z unstable-options --format json --report-time | cargo2junit
. It's implemented here.
from cargo2junit.
Oh nifty. That's good to hear. I guess this can be closed then?
from cargo2junit.
I just confirmed that the timings show up alright in GitLab so yeah. @johnterickson can you close this?
from cargo2junit.
I can verify that this is working in my GitLab-based project as well.
from cargo2junit.
Glad to hear this is all working!
from cargo2junit.
Related Issues (20)
- Use Pipeline Caching in the build HOT 3
- Add execution time support HOT 3
- Can't navigate test cases in Jenkins
- JSON output format seems to have changed with Rust/Cargo 1.50 HOT 1
- No newline at the end of the XML output HOT 1
- Precompiled binaries HOT 2
- Also report file names HOT 3
- Please tag releases HOT 1
- Output goes into the wrong tag HOT 4
- Propagate exit code HOT 1
- Breaking change in v0.1.12 HOT 3
- Capability to sort by time?
- Error on tracing::info! event in unit tests HOT 1
- cargo2junit returns error if no tests are found HOT 1
- Breaking unit tests in test cases based on module. HOT 1
- Missing tags? HOT 1
- cargo2junit will stop working with Rust 1.70 HOT 11
- Parse error on windows HOT 2
- Problem with install HOT 1
- cargo2junit panics because of a failed assertion HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo2junit.