Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mutate: view results based on a subset of the tests #1132

Open
christoffer-nylen opened this issue Jul 6, 2020 · 2 comments
Open

mutate: view results based on a subset of the tests #1132

christoffer-nylen opened this issue Jul 6, 2020 · 2 comments

Comments

@christoffer-nylen
Copy link
Collaborator

christoffer-nylen commented Jul 6, 2020

The user would like to see the mutation testing result from a specified set of tests, so that he/she can:

  1. Verify tracing from software requirements -> test name -> covered source code.
  2. Verify integration testing adequacy (data-flow and control flow) from high-level black-box tests.

Example:

  • All tests that match the test name: 'test_suite.req_880.check_out_of_range' or 'test_suite.hlr_black_box_tests.*'

Suggestions

Approach 1: Using dextool mutate admin removeTestCase

cp my_mutation_db.sqlite3 my_mutation_db.sqlite3.bak
dextool mutate admin --operation removeTestCase --invert-match -e 'test_suite.foo*' -e 'test_suite.bar*'
dextool mutate report --style html --mutant lcr --mutant lcrb --mutant sdl

Approach 2: Using dextool mutate report

dextool mutate report --style html --mutant lcr --mutant sdl --testData 'test_suite.foo*' --testData 'test_suite.bar*'

Approach 3: Using the web gui

Add a box-item to activate/deactive contributions from a specific test.

@christoffer-nylen christoffer-nylen changed the title mutate: inspect mutation result based on a subset of the tests mutate: view mutation result based on a specified subset of the tests Jul 6, 2020
@joakim-brannstrom
Copy link
Owner

should probably, actually implement both because they have a wider application than only this use case.

@christoffer-nylen
Copy link
Collaborator Author

christoffer-nylen commented Jul 6, 2020

  1. Verify tracing from software requirements -> test name -> covered source code.

Example:

Assume we have:

  • A sut that contains 6649 lines of code.
  • A requirement Req-880: When a given parameter x is out-of-range, the SUT shall return BAD_DATA.
  • A test test_suite.req_880.check_out_of_range that verifies this.

The user would like to check traceability between Req-880 and the source code where this is implemented.

Problem:

  • Where in the code is the out-of-range calculation performed?
  • Where does it set the return status to BAD_DATA?

Can mutation testing show the sut source code that is killed by test_suite.req_880.check_out_of_range ?

@christoffer-nylen christoffer-nylen changed the title mutate: view mutation result based on a specified subset of the tests mutate: view mutation result based on a subset of the tests Jul 6, 2020
@christoffer-nylen christoffer-nylen changed the title mutate: view mutation result based on a subset of the tests mutate: view results based on a subset of the tests Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants