domohuhn / mutation-test

Automated mutation testing for any programming language
BSD 3-Clause "New" or "Revised" License
20 stars 3 forks source link

Only run specific test #27

Open hschaeufler opened 1 week ago

hschaeufler commented 1 week ago

Is it possible to specify the test to be executed directly in the command? I would like to execute only the unit test associated with the specified code file. For Example: dart run mutation_test lib/code_file.dart -test lib/code_file_test.dart

hschaeufler commented 1 week ago

For those who are interested. I have found a workaround. I write the following with the widget to test in a cfg.xml:

<?xml version="1.0" encoding="UTF-8"?>

flutter test /path/to/widget_test.dart

Than I run the test with the following command: dart run mutation_test /path/to/widget.dart --rules tmp.cfg.xml --builtin --format none