factorio-test-cli 3.2.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -102,6 +102,9 @@ export function parseResultMessage(message) {
102
102
  hasFocusedTests: hasFocused,
103
103
  };
104
104
  }
105
+ function factorioLogHint(dataDir) {
106
+ return `\nCheck Factorio log for details: ${path.join(dataDir, "factorio-current.log")}`;
107
+ }
105
108
  function createOutputComponents(options) {
106
109
  const handler = new FactorioOutputHandler();
107
110
  const collector = new TestRunCollector();
@@ -206,16 +209,16 @@ export async function runFactorioTestsHeadless(factorioPath, dataDir, savePath,
206
209
  resolve();
207
210
  }
208
211
  else if (outputTimedOut) {
209
- reject(new CliError(`Factorio process stuck: no output received for ${outputTimeout} seconds`));
212
+ reject(new CliError(`Factorio process stuck: no output received for ${outputTimeout} seconds${factorioLogHint(dataDir)}`));
210
213
  }
211
214
  else if (startupTimedOut) {
212
- reject(new CliError("Factorio unresponsive: no test run started within 10 seconds"));
215
+ reject(new CliError(`Factorio unresponsive: no test run started within 10 seconds${factorioLogHint(dataDir)}`));
213
216
  }
214
217
  else if (handler.getResultMessage() !== undefined) {
215
218
  resolve();
216
219
  }
217
220
  else {
218
- reject(new CliError(`Factorio exited with code ${code}, signal ${signal}, no result received`));
221
+ reject(new CliError(`Factorio exited with code ${code}, signal ${signal}, no result received${factorioLogHint(dataDir)}`));
219
222
  }
220
223
  });
221
224
  });
@@ -253,7 +256,7 @@ export async function runFactorioTestsGraphics(factorioPath, dataDir, savePath,
253
256
  resolve();
254
257
  }
255
258
  else {
256
- reject(new CliError(`Factorio exited with code ${code}, signal ${signal}`));
259
+ reject(new CliError(`Factorio exited with code ${code}, signal ${signal}${factorioLogHint(dataDir)}`));
257
260
  }
258
261
  });
259
262
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "factorio-test-cli",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "A CLI to run FactorioTest.",
5
5
  "license": "MIT",
6
6
  "repository": {