Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,9 @@ jobs:
env:
NO_ELM_TOOLING_INSTALL: 1

- name: elm-tooling install
run: npx --no-install elm-tooling install
- run: npx elm-tooling install

- name: Flow
run: npx --no-install flow check
- run: node print.js

- name: ESLint
run: npx --no-install eslint --report-unused-disable-directives .

- name: Prettier
run: npx --no-install prettier --check .

- name: elm-format
run: npx --no-install elm-format --validate elm

- name: elm-review
run: npx --no-install elm-review
working-directory: elm
- run: npx node ../bin/elm-test --color
working-directory: example-application
63 changes: 0 additions & 63 deletions .github/workflows/test.yml

This file was deleted.

4 changes: 2 additions & 2 deletions elm/src/Test/Reporter/Console.elm
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ reportSummary useColor { todos, passed, failed, duration } autoFail =
headline =
case headlineResult of
Ok str ->
underline (green ("\n" ++ str ++ "\n\n"))
(green ("\n" ++ str ++ "\n\n"))

Err ( colorize, str, suffix ) ->
[ underline (colorize ("\n" ++ str))
[ (colorize ("\n" ++ str))
, colorize (suffix ++ "\n\n")
]
|> Text.concat
Expand Down
1 change: 1 addition & 0 deletions lib/Generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ function generateElmReportVariant(
return 'JUnitReport';
case 'console':
if (supportsColor) {
console.log('ConsoleReport UseColor');
return 'ConsoleReport UseColor';
} else {
return 'ConsoleReport Monochrome';
Expand Down
2 changes: 2 additions & 0 deletions lib/Supervisor.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function run(
}
break;
case 'summary':
console.log(JSON.stringify(makeWindowsSafe(result.summary)));
console.log(makeWindowsSafe(result.summary));
break;
default:
Expand Down Expand Up @@ -161,6 +162,7 @@ function run(
}

var response = JSON.parse(data);
console.log('READ', response);

switch (response.type) {
case 'FINISHED':
Expand Down
7 changes: 7 additions & 0 deletions print.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
console.log('\u001B[7mThis text is inverted\u001B[27m');
console.log('\x1b[31mThis text is red\x1b[0m');
console.log('\u001b[31mThis text is red\u001b[0m');
console.log('\u001b[31m\nThis text is red\u001b[0m');
console.log(
'\u001b[31mTEST RUN FAILED\u001b[39m\u001b[31m\n\n\u001b[39m\u001b[2mDuration: \u001b[22m154 ms\n\u001b[2mPassed: \u001b[22m3\n\u001b[2mFailed: \u001b[22m9\n\u001b[2mTodo: \u001b[22m3\n\x1b[0m'
);
1 change: 1 addition & 0 deletions templates/after.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ client.on('data', function (msg) {

// Use ports for inter-process communication.
app.ports.elmTestPort__send.subscribe(function (msg) {
console.log('MSG', msg);
// We split incoming messages on the socket on newlines. The gist is that node
// is rather unpredictable in whether or not a single `write` will result in a
// single `on('data')` callback. Sometimes it does, sometimes multiple writes
Expand Down
Loading