-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(betterer 🐛): improve docs, handle include and exclude, add tests,…
… simplify
- Loading branch information
1 parent
8cf8207
commit 5fb1285
Showing
17 changed files
with
630 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
"docgen", | ||
"GOLDENS", | ||
"hasher", | ||
"initialisation", | ||
"initialise", | ||
"initialised", | ||
"Initialising", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`betterer > should report the total coverage for included files 1`] = ` | ||
"// BETTERER RESULTS V2. | ||
// | ||
// If this file contains merge conflicts, use \`betterer merge\` to automatically resolve them: | ||
// https://phenomnomnominal.github.io/betterer/docs/results-file/#merge | ||
// | ||
exports[\`test\`] = { | ||
value: \`{ | ||
"total": { "lines": 50, "statements": 130, "functions": 15, "branches": 100 } | ||
} | ||
\` | ||
}; | ||
" | ||
`; | ||
exports[`betterer > should report the total coverage for included files 2`] = ` | ||
"// BETTERER RESULTS V2. | ||
// | ||
// If this file contains merge conflicts, use \`betterer merge\` to automatically resolve them: | ||
// https://phenomnomnominal.github.io/betterer/docs/results-file/#merge | ||
// | ||
exports[\`test\`] = { | ||
value: \`{ | ||
"total": { "lines": 30, "statements": 130, "functions": 15, "branches": 100 } | ||
} | ||
\` | ||
}; | ||
" | ||
`; | ||
exports[`betterer > should report the total coverage for included files 3`] = ` | ||
"// BETTERER RESULTS V2. | ||
// | ||
// If this file contains merge conflicts, use \`betterer merge\` to automatically resolve them: | ||
// https://phenomnomnominal.github.io/betterer/docs/results-file/#merge | ||
// | ||
exports[\`test\`] = { | ||
value: \`{ | ||
"total": { "lines": 30, "statements": 130, "functions": 15, "branches": 100 } | ||
} | ||
\` | ||
}; | ||
" | ||
`; | ||
exports[`betterer > should report the total coverage for included files 4`] = ` | ||
[ | ||
"🌟 Betterer (0ms): | ||
", | ||
"🌟 Betterer (0ms): 1 test running... | ||
🤔 test: running "test"! | ||
", | ||
"🌟 Betterer (0ms): 1 test running... | ||
✅ test: "test" got checked for the first time! 🎉 | ||
", | ||
"🎉 Betterer (0ms): 1 test done! | ||
✅ test: "test" got checked for the first time! 🎉 | ||
", | ||
"🎉 Betterer (0ms): 1 test done! | ||
✅ test: "test" got checked for the first time! 🎉 | ||
1 test got checked. 🤔 | ||
1 test got checked for the first time! 🎉 | ||
", | ||
"🌟 Betterer (0ms): | ||
", | ||
"🌟 Betterer (0ms): 1 test running... | ||
🤔 test: running "test"! | ||
", | ||
"🌟 Betterer (0ms): 1 test running... | ||
✅ test: "test" stayed the same. 😐 | ||
", | ||
"🎉 Betterer (0ms): 1 test done! | ||
✅ test: "test" stayed the same. 😐 | ||
", | ||
"🎉 Betterer (0ms): 1 test done! | ||
✅ test: "test" stayed the same. 😐 | ||
1 test got checked. 🤔 | ||
1 test stayed the same. 😐 | ||
", | ||
"🌟 Betterer (0ms): | ||
", | ||
"🌟 Betterer (0ms): 1 test running... | ||
🤔 test: running "test"! | ||
", | ||
"🌟 Betterer (0ms): 1 test running... | ||
✅ test: "test" got better! 😍 | ||
", | ||
"🎉 Betterer (0ms): 1 test done! | ||
✅ test: "test" got better! 😍 | ||
", | ||
"🎉 Betterer (0ms): 1 test done! | ||
✅ test: "test" got better! 😍 | ||
1 test got checked. 🤔 | ||
1 test got better! 😍 | ||
", | ||
"🌟 Betterer (0ms): | ||
", | ||
"🌟 Betterer (0ms): 1 test running... | ||
🤔 test: running "test"! | ||
", | ||
"🌟 Betterer (0ms): 1 test running... | ||
🔥 test: "test" got worse. 😔 | ||
", | ||
"🌟 Betterer (0ms): 1 test running... | ||
🔥 test: "test" got worse. 😔 | ||
Error: "test" got worse. 😔 | ||
", | ||
"💥 Betterer (0ms): 1 test done! 1 test errored! | ||
🔥 test: "test" got worse. 😔 | ||
・ "lines" coverage is worse in "total": 60 > 30 | ||
Error: "test" got worse. 😔 | ||
", | ||
"💥 Betterer (0ms): 1 test done! 1 test errored! | ||
🔥 test: "test" got worse. 😔 | ||
・ "lines" coverage is worse in "total": 60 > 30 | ||
Error: "test" got worse. 😔 | ||
1 test got checked. 🤔 | ||
1 test got worse. 😔 | ||
You should try to fix the new issues! As a last resort, you can run \`betterer --update\` to force an update of the results file. 🆙 | ||
", | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.