main.py (13789:d7b2be2c468b) main.py (14141:b3ceff47211a)
1# Copyright (c) 2017 Mark D. Hill and David A. Wood
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 240 unchanged lines hidden (view full) ---

249 * Run Test
250 * Test Fixture Teardown
251 * Suite Fixture Teardown
252 * Global Fixture Teardown
253 '''
254
255 log_handler.schedule_finalized(test_schedule)
256
1# Copyright (c) 2017 Mark D. Hill and David A. Wood
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 240 unchanged lines hidden (view full) ---

249 * Run Test
250 * Test Fixture Teardown
251 * Suite Fixture Teardown
252 * Global Fixture Teardown
253 '''
254
255 log_handler.schedule_finalized(test_schedule)
256
257 # Iterate through all fixtures notifying them of the test schedule.
258 for suite in test_schedule:
259 copied_fixtures = []
260 for fixture in suite.fixtures:
261 copied_fixtures.append(fixture.schedule_finalized(test_schedule))
262 suite.fixtures = copied_fixtures
263
264 for test in suite:
265 copied_fixtures = []
266 for fixture in test.fixtures:
267 copied_fixtures.append(fixture.schedule_finalized(
268 test_schedule))
269 test.fixtures = copied_fixtures
270
271 log.test_log.message(terminal.separator())
272 log.test_log.message('Running Tests from {} suites'
273 .format(len(test_schedule.suites)), bold=True)
274 log.test_log.message("Results will be stored in {}".format(
275 config.config.result_path))
276 log.test_log.message(terminal.separator())
277
278 # Build global fixtures and exectute scheduled test suites.

--- 67 unchanged lines hidden ---
257 log.test_log.message(terminal.separator())
258 log.test_log.message('Running Tests from {} suites'
259 .format(len(test_schedule.suites)), bold=True)
260 log.test_log.message("Results will be stored in {}".format(
261 config.config.result_path))
262 log.test_log.message(terminal.separator())
263
264 # Build global fixtures and exectute scheduled test suites.

--- 67 unchanged lines hidden ---