mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 15:26:11 +01:00
Fixed issue with reading test names from file
This commit is contained in:
parent
fcf0deb116
commit
e8aa0bb19b
@ -49,7 +49,7 @@ namespace Catch {
|
|||||||
while( std::getline( f, line ) ) {
|
while( std::getline( f, line ) ) {
|
||||||
line = trim(line);
|
line = trim(line);
|
||||||
if( !line.empty() && !startsWith( line, "#" ) )
|
if( !line.empty() && !startsWith( line, "#" ) )
|
||||||
addTestOrTags( config, line );
|
addTestOrTags( config, "\"" + line + "\"" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,10 +36,10 @@ namespace Catch {
|
|||||||
visitChar( m_arg[m_pos] );
|
visitChar( m_arg[m_pos] );
|
||||||
if( m_mode == Name )
|
if( m_mode == Name )
|
||||||
addPattern<TestSpec::NamePattern>();
|
addPattern<TestSpec::NamePattern>();
|
||||||
|
addFilter();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
TestSpec testSpec() {
|
TestSpec testSpec() {
|
||||||
addFilter();
|
|
||||||
return m_testSpec;
|
return m_testSpec;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user