Comments (8)
If you're talking about a previous version of lemoncheesecake, this behavior has not changed since 0.22.0.
I encourage you to check your calls to lcc.log_*
, since the issue appear in a failed test, this limit your search. You can also look for True
and False
occurrences in logs in the resulting report/report.js
file.
from lemoncheesecake.
Hello @shivamgarg17 ,
I guess that you did not copy/paste the full stacktrace, could you do it ?
I will able to provide you a more accurate diagnostic. From my understanding, there was something that you logged (it could be a step description, a message, a check, etc..) where you passed a bool instead of the excepted string.
Best regards.
from lemoncheesecake.
Hi @ndelon ,
Thanks for quick response, I will try to figure out the said steps. Meanwhile please find the full staktrace:
+ lcc report --non-passed Traceback (most recent call last): File "/var/lib/jenkins/workspace/qa/venv/bin/lcc", line 10, in <module> sys.exit(main()) File "/var/lib/jenkins/workspace/qa/venv/local/lib/python2.7/site-packages/lemoncheesecake/cli/main.py", line 49, in main return command.run_cmd(cli_args) File "/var/lib/jenkins/workspace/qa/venv/local/lib/python2.7/site-packages/lemoncheesecake/cli/commands/report.py", line 47, in run_cmd explicit=cli_args.explicit or not sys.stdout.isatty() File "/var/lib/jenkins/workspace/qa/venv/local/lib/python2.7/site-packages/lemoncheesecake/reporting/console.py", line 230, in print_report _print_chunks(chunks) File "/var/lib/jenkins/workspace/qa/venv/local/lib/python2.7/site-packages/lemoncheesecake/reporting/console.py", line 196, in _print_chunks for chunk in chunks: File "/var/lib/jenkins/workspace/qa/venv/local/lib/python2.7/site-packages/lemoncheesecake/reporting/console.py", line 189, in render_results yield self.render_test(result) File "/var/lib/jenkins/workspace/qa/venv/local/lib/python2.7/site-packages/lemoncheesecake/reporting/console.py", line 166, in render_test return self.render_chunk(test.description, short_description, test.status, test.steps) File "/var/lib/jenkins/workspace/qa/venv/local/lib/python2.7/site-packages/lemoncheesecake/reporting/console.py", line 142, in render_chunk details = self.render_steps(steps) File "/var/lib/jenkins/workspace/qa/venv/local/lib/python2.7/site-packages/lemoncheesecake/reporting/console.py", line 110, in render_steps self.render_highlighted(self.wrap_description_col(entry.message)) File "/var/lib/jenkins/workspace/qa/venv/local/lib/python2.7/site-packages/lemoncheesecake/reporting/console.py", line 72, in wrap_description_col return wrap_text(description, int((self.max_width - self._table_overhead) * 0.75)) File "/var/lib/jenkins/workspace/qa/venv/local/lib/python2.7/site-packages/lemoncheesecake/helpers/text.py", line 21, in wrap_text textwrap.wrap(line, width) for line in text.split("\n") AttributeError: 'bool' object has no attribute 'split'
from lemoncheesecake.
Ok, then it seems to be with a log_{debug,warning,info,error}
call where instead of passing a string, you pass a boolean.
Regards.
from lemoncheesecake.
from lemoncheesecake.
from lemoncheesecake.
In the new lemoncheesecake 1.2.2 release (https://github.com/lemoncheesecake/lemoncheesecake/blob/master/CHANGELOG.md#122-2019-09-15), data going persisted into the report are now strictly type-checked ASAP and will avoid more complicated debugging sessions.
For instance, something such as lcc.log_info(True)
will now raise a TypeError
exception.
from lemoncheesecake.
If you're talking about a previous version of lemoncheesecake, this behavior has not changed since 0.22.0.
I encourage you to check your calls to
lcc.log_*
, since the issue appear in a failed test, this limit your search. You can also look forTrue
andFalse
occurrences in logs in the resultingreport/report.js
file.
Hi @ndelon ,
Its worked after converting them into string
Thanks
from lemoncheesecake.
Related Issues (20)
- check_that vs. assert_that HOT 1
- lcc run skips execution of tests inside a folder created within the suites directory HOT 5
- Is there a known way to implement 'capture a screenshot when a check fails or error occurs' with lcc and selenium webdriver. HOT 24
- Unable to view html reports when integrated with Jenkins HOT 2
- Is there a env variable that can fetch the name of the current test? HOT 4
- lcc run --exit-error-on-failure doesn't exit nonzero on failure in teardown_suite HOT 7
- setup_suite and teardown_suite still run when a suite is disabled HOT 3
- setup_test and teardown_test don't run when defined in outer class HOT 3
- rank=<int> doesn't seem to be working as expected, the test suites are not executing according to rank number. HOT 3
- common package HOT 3
- Unable to pass any parameters to teardown_suite HOT 3
- Getting "Connection pool is full, discarding connection: 127.0.0.1" error while running test cases on thread HOT 22
- error: "AttributeError: 'InjectedFixture' object has no attribute 'get'" HOT 19
- Is there any way to capture screenshot for fail test cases if my fixture is using scope as "session" and "per_thread=True"? HOT 12
- Having issue in Genrating xml, Junit Reports. Getting error `Unknown reporting backend`. HOT 2
- JUnit reporting not working with LCC HOT 2
- Allow wildcard in test dependencies HOT 7
- `lcc run` with reporting argument does not run tests HOT 4
- Question: How to setup some steps to perform before any of the tests start to run and should be performed only once at the start. HOT 7
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 lemoncheesecake.