Which of the following command is execute to run all the test cases present in a project folder using unittest?
python -m unittest start
python -m unittest
python -m unittest discover
python -m unittest test
Answers
Answer:
import unittest
import unittestclass Test(unittest.TestCase):
import unittestclass Test(unittest.TestCase): # test should start with test prefix
import unittestclass Test(unittest.TestCase): # test should start with test prefix def test_FirstTest(self):
import unittestclass Test(unittest.TestCase): # test should start with test prefix def test_FirstTest(self): print("This is to show case the simple Test")
import unittestclass Test(unittest.TestCase): # test should start with test prefix def test_FirstTest(self): print("This is to show case the simple Test")if __name__ == "__main__":
import unittestclass Test(unittest.TestCase): # test should start with test prefix def test_FirstTest(self): print("This is to show case the simple Test")if __name__ == "__main__": unittest.main()
I think it is the answer
please mark me as brainlist