Skip to content

Commit

Permalink
fix: Sort Mutant List by Filename when building HTML output
Browse files Browse the repository at this point in the history
  • Loading branch information
WiredNerd committed Sep 16, 2023
1 parent f2015f4 commit 9af3db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mutmut/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def create_junitxml_report(dict_synonyms, suspicious_policy, untested_policy):
@init_db
@db_session
def create_html_report(dict_synonyms):
mutants = list(select(x for x in Mutant))
mutants = sorted(list(select(x for x in Mutant)), key=lambda x: x.line.sourcefile.filename)

os.makedirs('html', exist_ok=True)

Expand Down

0 comments on commit 9af3db2

Please sign in to comment.