Skip to content

[BUG] Tests run on outdated code #408

@tyuldashev

Description

@tyuldashev

Version: 2022.8.233

Description
If user generates tests, runs them and updates code then next running still uses 'old' code.

To Reproduce
Steps to reproduce the behavior:

  1. Write a function like that
short min_short(short a, short b) {
    if (a < b) {
        return a;
    }
    return b;
}
  1. Generate tests for the file
  2. Run tests with coverage - both passed
  3. Update condition from a < b to a > b and save the file
  4. Run generated tests again - both test passed again. Expected that one test fails.

I've checked that code is actually updated on the remote server.
It doesn't happen if user skips step 3 and run only modified code.

Metadata

Metadata

Labels

bugSomething isn't workingverifiedBug fix is verified

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions