Commit ce0009ab by Jesse Zoldak Committed by GitHub

Merge pull request #13282 from edx/zoldak/lettuce-fasttest

test_acceptance paver command option fasttest should not recompile sass
parents a6648559 99a7c555
...@@ -609,7 +609,7 @@ To start the debugger on failure, pass the ``--pdb`` option to the paver command ...@@ -609,7 +609,7 @@ To start the debugger on failure, pass the ``--pdb`` option to the paver command
paver test_acceptance -s lms --pdb --extra_args="lms/djangoapps/courseware/features/problems.feature" paver test_acceptance -s lms --pdb --extra_args="lms/djangoapps/courseware/features/problems.feature"
To run tests faster by not collecting static files, you can use To run tests faster by not collecting static files or compiling sass, you can use
``paver test_acceptance -s lms --fasttest`` and ``paver test_acceptance -s lms --fasttest`` and
``paver test_acceptance -s cms --fasttest``. ``paver test_acceptance -s cms --fasttest``.
......
...@@ -80,7 +80,8 @@ class AcceptanceTest(TestSuite): ...@@ -80,7 +80,8 @@ class AcceptanceTest(TestSuite):
def __enter__(self): def __enter__(self):
super(AcceptanceTest, self).__enter__() super(AcceptanceTest, self).__enter__()
self.report_dir.makedirs_p() self.report_dir.makedirs_p()
self._update_assets() if not self.fasttest:
self._update_assets()
def __exit__(self, exc_type, exc_value, traceback): def __exit__(self, exc_type, exc_value, traceback):
super(AcceptanceTest, self).__exit__(exc_type, exc_value, traceback) super(AcceptanceTest, self).__exit__(exc_type, exc_value, traceback)
...@@ -109,10 +110,6 @@ class AcceptanceTest(TestSuite): ...@@ -109,10 +110,6 @@ class AcceptanceTest(TestSuite):
Internal helper method to manage asset compilation Internal helper method to manage asset compilation
""" """
args = [self.system, '--settings=acceptance'] args = [self.system, '--settings=acceptance']
if self.fasttest:
args.append('--skip-collect')
call_task('pavelib.assets.update_assets', args=args) call_task('pavelib.assets.update_assets', args=args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment