Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions cms/envs/acceptance.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
# otherwise the browser will not render the pages correctly
DEBUG = True

# Disable warnings for acceptance tests, to make the logs readable
# Output Django logs to a file
import logging
logging.disable(logging.ERROR)
logging.basicConfig(filename=TEST_ROOT / "log" / "cms_acceptance.log", level=logging.ERROR)

import os
from random import choice, randint

Expand Down
2 changes: 2 additions & 0 deletions docs/internal/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ Acceptance tests will run on a randomized port and can be run in the background
To specify the port, change the LETTUCE_SERVER_PORT constant in cms/envs/acceptance.py and lms/envs/acceptance.py
as well as the port listed in cms/djangoapps/contentstore/feature/upload.py

During acceptance test execution, Django log files are written to `test_root/log/lms_acceptance.log` and `test_root/log/cms_acceptance.log`.

**Note**: The acceptance tests can *not* currently run in parallel.

## Viewing Test Coverage
Expand Down
5 changes: 3 additions & 2 deletions lms/envs/acceptance.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
# otherwise the browser will not render the pages correctly
DEBUG = True

# Disable warnings for acceptance tests, to make the logs readable
# Output Django logs to a file
import logging
logging.disable(logging.ERROR)
logging.basicConfig(filename=TEST_ROOT / "log" / "lms_acceptance.log", level=logging.ERROR)

import os
from random import choice, randint
import string
Expand Down