-
Notifications
You must be signed in to change notification settings - Fork 10
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
record on failures #78
base: master
Are you sure you want to change the base?
Conversation
@bahmutov - Please review, thanks! |
@@ -38,7 +40,7 @@ const processTestResults = (processingOptions = {}) => async (results) => { | |||
} | |||
// if the test name includes the special movie string | |||
// then we want to convert this particular test into a movie | |||
if (test.title[test.title.length - 1].includes(MOVIE_SYMBOL) || test.state === 'failed') { | |||
if (test.title[test.title.length - 1].includes(MOVIE_SYMBOL) || recordFailedTests === 'true') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this will record all tests? because you removed the failed state check
@@ -16,6 +16,8 @@ const MOVIE_REGEX = /🎥/g | |||
|
|||
const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path | |||
|
|||
const recordFailedTests = process.env.RECORD_FAILED_TESTS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
process the environment variable here to get a boolean variable. I would do something like
let recordFailedTests = false
if ('RECORD_FAILED_TESTS' in process.env) {
recordFailedTests = process.env.RECORD_FAILED_TESTS === 'true' || process.env.RECORD_FAILED_TESTS === '1'
}
To address - #36