action #1314
closed
Include an API to make assert for console application (text asserts)
Added by aplanas almost 11 years ago.
Updated about 10 years ago.
Category:
Feature requests
Description
Console tests are using graphical elements to make the assert. We need better ways to assert text from the console
- Assignee set to coolo
- Target version set to Sprint 12
I'm experimenting with this interface:
use base 'opensusebasetest';
use strict;
use testapi;
# Check that there is access to the local hard disk
sub script() {
return << 'EOS';
mount /dev/vda2 /mnt
cat /mnt/etc/SUSE-brand
EOS
}
sub run() {
validate_script_output { $_ =~ m/VERSION = / };
}
sub test_flags() {
return { 'important' => 1 };
}
1;
- Status changed from New to Resolved
After discussion on mailing list, I changed the interface. And I think there is a lot of potential in this.
Also available in: Atom
PDF