Creating group of tests


#1

Is it possible to group tests in the same file (like jest or rspec describe blocks) ?


#2

Short answer No and this is done intentionally. Keeping tests flat and their own files doesn’t hurt.

Long answer, you can create multiple suites in single test file.

const group1 = use('Test/Suite')('Group 1')
const group2 = use('Test/Suite')('Group 2')

group1.test('')
group2.test('')