Module: OroGen::SelfTest
- Included in:
- Minitest::Test
- Defined in:
- lib/orogen/test.rb
Constant Summary collapse
- TEST_DIR =
File.(File.join('..', '..', '..', 'test'), __FILE__)
- TEST_DATA_DIR =
File.join( TEST_DIR, 'data' )
- WC_ROOT =
File.join(TEST_DIR, 'wc')
Instance Method Summary collapse
- #create_dummy_project ⇒ Object
-
#path_to_data ⇒ String
The full path to oroGen's test/data folder, where fixtures are stored.
-
#path_to_test ⇒ Object
Overload of test_dir for use in specs, as test_* is somewhat hidden by minitest.
-
#path_to_wc_root ⇒ String
The full path to oroGen's test/wc folder, where code is being generated by the tests.
- #setup ⇒ Object
- #teardown ⇒ Object
Instance Method Details
#create_dummy_project ⇒ Object
56 57 58 59 60 |
# File 'lib/orogen/test.rb', line 56 def create_dummy_project loader = OroGen::Loaders::Files.new OroGen::Loaders::RTT.setup_loader(loader) OroGen::Spec::Project.new(loader) end |
#path_to_data ⇒ String
Returns the full path to oroGen's test/data folder, where fixtures are stored
46 47 48 |
# File 'lib/orogen/test.rb', line 46 def path_to_data TEST_DATA_DIR end |
#path_to_test ⇒ Object
Overload of test_dir for use in specs, as test_* is somewhat hidden by minitest
40 41 42 |
# File 'lib/orogen/test.rb', line 40 def path_to_test TEST_DIR end |
#path_to_wc_root ⇒ String
Returns the full path to oroGen's test/wc folder, where code is being generated by the tests
52 53 54 |
# File 'lib/orogen/test.rb', line 52 def path_to_wc_root WC_ROOT end |
#setup ⇒ Object
62 63 64 |
# File 'lib/orogen/test.rb', line 62 def setup # Setup code for all the tests end |
#teardown ⇒ Object
66 67 68 |
# File 'lib/orogen/test.rb', line 66 def teardown # Teardown code for all the tests end |