Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ava test not running when using continuous integration #439

Closed
dhuang612 opened this issue Sep 16, 2019 · 0 comments
Closed

ava test not running when using continuous integration #439

dhuang612 opened this issue Sep 16, 2019 · 0 comments

Comments

@dhuang612
Copy link

dhuang612 commented Sep 16, 2019

Hi,

I had a question about getting a test to run when ci is being used.
I setup a basic test for launching an electron app and confirming the number of windows.
The test runs fine on my local machine, and when I am pushing this change to github.
However, once ci tries to run the test it simply times out without returning any errors.
I am running ava using --verbose so it should return data to me if it is running.

const path = require('path');
const test = require('ava');
const {Application} = require('spectron');

let electronPath = path.join(__dirname, '..', 'node_modules', '.bin', 'electron');
const appPath = path.join(__dirname, '..');
if (process.platform === 'win32') {
  electronPath += '.cmd';
}

test.beforeEach(async t => {
  t.context.app = new Application({
    path: electronPath,
    args: [appPath],
    requireName: 'electronRequire',
    env: {ELECTRON_ENABLE_LOGGING: true, ELECTRON_ENABLE_STACK_DUMPING: true, NODE_ENV: 'test npm test'},
    startTimeout: 2000,
    waitTimeout: 5000
  });
  await t.context.app.start();
});

This is the app test configuration setup. I've been continuing to update the code.
However there has been no change to the error
Too long with no output (exceeded 10m0s)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant