remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
remix-project/apps/remix-ide-e2e/src/checkGroupTests.js

15 lines
510 B

const testFolder = './apps/remix-ide-e2e/src/tests/'
const fs = require('fs')
fs.readdirSync(testFolder).forEach(file => {
if (!file.includes('group')) {
const content = fs.readFileSync(testFolder + file, 'utf8')
const matches = content.match(/group\d+/g)
if (matches) {
const disabled = content.includes('\'@disabled\': true') || content.includes('\'@disabled\':true')
if (!disabled) {
console.log(`WARNING ${file} has group tests but is not disabled`)
}
}
}
})