I have this Unit Test file:
class WebsiteCheckPageElements < Test::Unit::TestCase
def setup
...
end
def test_achievements_iknow_report_page
...
end
def test_achievements_daily_report_page
...
end
def test_client_side_report_page
...
end
end
I need to write a ruby script that will write the names of the tests to .txt file. Something like
setup
test_achievements_iknow_report_page
test_achievements_daily_report_page
test_client_side_report_page
Thank you in advance for the suggestions.
You could use a simple script that uses regular expressions to print the lines that match
def:match_test_methods.rbThen put the result of the script in a .txt file