console.style | facilitates intuitive styling of the developer | Command Line Interface library
kandi X-RAY | console.style Summary
kandi X-RAY | console.style Summary
console.style is 0.6kb standalone micro-library that facilitates intuitive styling of the browser developer tools console using HTML markup and CSS.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of console.style
console.style Key Features
console.style Examples and Code Snippets
Community Discussions
Trending Discussions on console.style
QUESTION
I am experiencing a problem when trying to do instrumentation tests with Android. When one of the tests fails, the build fails, but doesn't state that the test failed. Instead I get FAILURE: Build failed with an exception.
For the what went wrong section, I get String index out of range: -1
.
In my real app, this is causing it to not generate a html report either, and the xml report is sporadically generated. I have put together a simple test case, but it is generating the report, but otherwise giving the same failure message.
To clarify, the test is designed to fail, but I would expect a A test has failed
message instead of what looks like a different failure reason. I suspect that the failure is causing something else in the build lifecycle to go wrong leading to the message that I am seeing.
Here is the very simple test app
build.gradle
...ANSWER
Answered 2017-Aug-17 at 19:15It seems like this is a known issue with Gradle on Windows. There is a similar error description reported as issue 2077 and a fix issued (apparently this is caused by multiple \r characters). There is a note that this issue is to be fixed in Gradle 4.1.
Update: 4.1 is now out, and this seems to have been fixed. The simple app above behaves as expected, and the real app that I had this problem with also behaves exactly as expected.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install console.style
download the zip
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page