Ejemplo n.º 1
0
def cmake():
    terminal = mv.Terminal()
    terminal.new()
    terminal.type("cd build")
    mv.wait(1)
    terminal.type("cmake ..")
    mv.wait(1)
    terminal.type("make")
    mv.wait_image("terminal/built_target", seconds=20, wait=3, score=0.9)
    return terminal
Ejemplo n.º 2
0
def run_test(test_name, scroll_result):
    terminal = mv.Terminal()
    terminal.new()
    terminal.type("cd tests")
    terminal.type("python3 {}".format(test_name))
    mv.wait_image("terminal/local_node_stopped", seconds=20, score=0.9)

    terminal.maximize()
    mv.wait(2)
    terminal.scroll_down(scroll_result)
    return terminal
Ejemplo n.º 3
0
def init(group=1):
    view_explorer()
    mv.toggle_side_bar()

    terminal = mv.Terminal()
    terminal.new()
    mv.wait(1)
    terminal.hide()

    narration = mv.Edit("narration", group)
    
    return narration
Ejemplo n.º 4
0
narration = ma.init()
mv.focus_group(1)
ma.ide_view()
get_started = mv.wait_image("eoside/get_started", mv.region_vscode)
if not get_started:
    print('''
Is 'EOSIDE' view focused?
Is US keyboard set?
Is 'hello' project in the 'Recent' list?
    ''')
    exit()

ma.type_setup(narration)

mv.start_ffmpeg(NAME)
mv.wait(5)
narration.move_right()
narration.set_width()

################################################################################
# Starting EOSIDE
################################################################################

narration.type(
    '''

# Starting EOSIDE

With the extension EOSIDE enabled, this Visual Studio Code window can be launched by the command 'code -n'.
''', "w")
mv.wait(4)