Changeset 31:d66aca501fe9 in pyenvjasmine


Ignore:
Timestamp:
Jan 18, 2018, 1:02:12 PM (7 years ago)
Author:
Borja Lopez <borja@…>
Branch:
default
Phase:
public
Message:

Extended asserts on a couple of tests with js test failures
(asserting that the js test run failed + how many tests failed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyenvjasmine/tests/test_runner.py

    r30 r31  
    5252        )
    5353        expected = jstests.create_testRunnerHtml()
    54         jstests.run(spec='tests/specs/test_demo.spec.js')
     54        success, stdout = jstests.run(spec='tests/specs/test_demo.spec.js')
     55        assert not success
     56        assert 'Failed: 2' in stdout
    5557        with open("browser.runner.html",'r') as file:
    5658            actual = file.read()
     
    7274        success, stdout = jstests.run(spec='tests/specs/test_demo.spec.js')
    7375        assert not success
     76        assert 'Failed: 2' in stdout
    7477
    7578    def test_get_environment(self):
Note: See TracChangeset for help on using the changeset viewer.