Skip to content

Commit

Permalink
issue 364: can't run tests
Browse files Browse the repository at this point in the history
.. Fix the SublimeHaskell command -- task should invoke 'test', not
   'install'
.. Add test to the "Build with..." menu.
  • Loading branch information
B. Scott Michel committed Oct 29, 2017
1 parent 87cd2a9 commit 7032ae5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Commands/Default.sublime-commands
Expand Up @@ -81,7 +81,7 @@
{
"caption": "SublimeHaskell: Test",
"command": "sublime_haskell_build",
"args": { "task": "install" }
"args": { "task": "test" }
},
{
"caption": "SublimeHaskell: Run",
Expand Down
2 changes: 2 additions & 0 deletions Messages/2.1.1.md
Expand Up @@ -9,6 +9,8 @@ SublimeHaskell 2.1.x is a minor release tree for enhancements and newly resolved

**Issue 365 (partial)**: Fix dignostic message when SublimeHaskell doesn't accept the `prettify_executable` setting's value.

**Issue 364**: `SublimeHaskell: Test` actually invoked the `install` task, not the `test` task. Also added `SublimeHaskell - Test` to the "Build With..." menu. Issue fixed.

## 2.1.0

**Issue 352**: Add command line options for `stylish-haskell` and `hindent`. NOTE: These are lists, not strings.
Expand Down
6 changes: 5 additions & 1 deletion SublimeHaskell.sublime-build
Expand Up @@ -19,6 +19,10 @@
{
"name": "Install",
"task": "install"
},
{
"name": "Test",
"task": "test"
}
]
}
}
2 changes: 2 additions & 0 deletions build.py
Expand Up @@ -223,6 +223,8 @@ def done_callback():

# Run them
msg = '{0} {1} with {2}'.format(action_title, project_name, tool_title)
Logging.log(msg, Logging.LOG_DEBUG)
Logging.log('commands:\n{0}'.format(commands), Logging.LOG_DEBUG)
Common.show_status_message_process(msg, priority=3)
Utils.run_async('run_chain_build_thread', self.wait_for_chain_to_complete, view, project_dir, msg, commands,
on_done=done_callback)
Expand Down

0 comments on commit 7032ae5

Please sign in to comment.