Skip to content
Snippets Groups Projects
  • Saurabh Kumar's avatar
    91a25396
    Improve testing and development experience · 91a25396
    Saurabh Kumar authored
    - Add “make test” command to lint, test and report coverage
    - Add pytest runner 
      - It automatically set up to use the correct Django settings module
      - Runs tests on all the available CPU, I was able to run all the test in total=~30sec using “make test” command.
      - It provides a cleaner error report, compared to DjangoTestRunner
    - Coverage
      - Displayed the report on the terminal after the test finish
      - Disable reporting of coverage for test and migration files
      - Enable coverage reporting for the template files
      - “make test” generates HTML reports to quickly check the coverage of each file
    91a25396
    History
    Improve testing and development experience
    Saurabh Kumar authored
    - Add “make test” command to lint, test and report coverage
    - Add pytest runner 
      - It automatically set up to use the correct Django settings module
      - Runs tests on all the available CPU, I was able to run all the test in total=~30sec using “make test” command.
      - It provides a cleaner error report, compared to DjangoTestRunner
    - Coverage
      - Displayed the report on the terminal after the test finish
      - Disable reporting of coverage for test and migration files
      - Enable coverage reporting for the template files
      - “make test” generates HTML reports to quickly check the coverage of each file