ReactJS - How to pass method to component and how to pass arguments to method
Introduction In the ReactJS project, you are having aa parent component and a…
March 03, 2021
In this post, we will explore some useful command line options for running python unit tests.
Assumming you have lot of tests written, and is in seperate files.
To run only tests within a particular file, you just pass the path to that file only.
pytest <path_to_pytest_file>
Many times, you may want tp run only one test case across your pool of test cases. You would want to run it by name.
pytest -k <test_name>
Note: It will run all those test cases where this test_name
is occurring. It works kind of `string contains’.
So if your test names are:
test_check_1
test_check_2
test_check_3
test_check_10
test_check_12
And, if you run
pytest -k test_check1
It will run following test cases:
test_check_1
test_check_10
test_check_12
You may have some print statements in between and want to know the output.
pytest -s
You can use it with -k
option as well.
pytest -k check_1 -s
Often times, the Python logging does not come in pytest. To enable this,
pytest --log-cli-level=INFO
pytest --log-cli-level=INFO -k check_1 -s
Introduction In the ReactJS project, you are having aa parent component and a…
If your youtube video looks like:https://www.youtube.com/watch?v=g0kFl7sBdDQ…
You can either do tail -f drupal.log or open it in an editor like vim.
Introduction You have a view with 4-5 fields to display. Suppose, there are two…
Introduction In this post, we will see ways to look at git history logs. For…
This is regarding the timeit implementation in python. The basic requirement…
Introduction In this post we will see following: How to schedule a job on cron…
Introduction There are some cases, where I need another git repository while…
Introduction In this post, we will see how to fetch multiple credentials and…
Introduction I have an automation script, that I want to run on different…
Introduction I had to write a CICD system for one of our project. I had to…
Introduction Java log4j has many ways to initialize and append the desired…