Ticket #5 (new enhancement)

Opened 1 year ago

Test source code mutation - Test AST mutation, test passes, have to dump out mutated code.

Reported by: akhavr Assigned to: somebody
Priority: major Milestone:
Component: component1 Version:
Keywords: Cc:

Description

PyBeast

2. Test source code mutation

Call method: shell utility invocation

testmutatation mutations.py src.python.module test.python.module failed-mutation/python/module/dir

Event flow:

  1. System evaluates mutations.py - the mutations list, which includes mutation weights
  2. System reads src.python.module and parses into AST
  3. System executes a single mutation over the AST.
  4. System runs test.python.module over the mutated and compiled AST. If tests didn't caught an change, system dumps mutated code into failed-mutation/python/module/dir

Timings:

  1. Parse and mutation generation over the complete body of PyBeast should take less than 1 sec.
  2. Complete process of testing a single PyBeast mutation should take less than 1 minute.

Tests:

  1. Test AST mutation, test passes, have to dump out mutated code.