My application has a daily task which exports certain activities to CSV files. In the ideal world, admins would check those files daily to make sure they are sane and the application is behaving as expected. In the real world, that won't (always) happen, so I'd like to create some sort of automation framework where (ideally) business users can build validation rules to be applied against the CSV.
Example:
Scenario "Participants can only create messages with their own ID":
For file 'Messages_{Date}':
Assert column 'User role' matches one of ['Admin', 'Participant']
If 'User role' = 'Participant'
Assert column 'User id' matches JSON.parse(message).user
I wonder if a BDD tool like Jasmine can help with making these test cases clear and reporting any issues to both developers and business (power-)users, and also perhaps handle some things like "This report was broken already yesterday so don't send a new email today".
Am I approaching this wrong? Is this kind of data-level validation a bad idea? What tools do people use for this kind of thing?